Skip to content

Commit 2191fdf

Browse files
Pakisanfmvilas
andauthored
fix: fix type of payload in MessageExample (#561)
* 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 <fmvilas@gmail.com> --------- Co-authored-by: Fran Méndez <fmvilas@gmail.com>
1 parent 2da0459 commit 2191fdf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

definitions/3.0.0/messageExampleObject.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
},
2525
"headers": {
2626
"type": "object",
27-
"description": "Example of the application headers. It can be of any type."
27+
"description": "Example of the application headers. It MUST be a map of key-value pairs."
2828
},
2929
"payload": {
30+
"type": ["number", "string", "boolean", "object", "array", "null"],
3031
"description": "Example of the message payload. It can be of any type."
3132
}
3233
},

0 commit comments

Comments
 (0)