Skip to content

Commit

Permalink
fix: fix type of payload in MessageExample (#561)
Browse files Browse the repository at this point in the history
* fix: fix type of payload and headers in MessageExample

#560

* fix: wrong type of payload and headers in MessageExample

Rollback headers to Map[string, any]

* fix: headers description in MessageExample

Update headers description. Clarify that headers must be a map of key-value pairs

* Update definitions/3.0.0/messageExampleObject.json

Co-authored-by: Fran Méndez <[email protected]>

---------

Co-authored-by: Fran Méndez <[email protected]>
  • Loading branch information
Pakisan and fmvilas authored Jan 27, 2025
1 parent 2da0459 commit 2191fdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion definitions/3.0.0/messageExampleObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
},
"headers": {
"type": "object",
"description": "Example of the application headers. It can be of any type."
"description": "Example of the application headers. It MUST be a map of key-value pairs."
},
"payload": {
"type": ["number", "string", "boolean", "object", "array", "null"],
"description": "Example of the message payload. It can be of any type."
}
},
Expand Down

0 comments on commit 2191fdf

Please sign in to comment.