Skip to content

Commit 4bd5b64

Browse files
authored
fix: fix Message Trait example field (#85)
1 parent 6e80ca8 commit 4bd5b64

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

schemas/2.1.0.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,26 @@
934934
"examples": {
935935
"type": "array",
936936
"items": {
937-
"type": "object"
937+
"type": "object",
938+
"additionalProperties": false,
939+
"anyOf": [
940+
{"required": ["payload"] },
941+
{"required": ["headers"] }
942+
],
943+
"properties": {
944+
"name": {
945+
"type": "string",
946+
"description": "Machine readable name of the message example."
947+
},
948+
"summary": {
949+
"type": "string",
950+
"description": "A brief summary of the message example."
951+
},
952+
"headers": {
953+
"type": "object"
954+
},
955+
"payload": {}
956+
}
938957
}
939958
},
940959
"bindings": {

0 commit comments

Comments
 (0)