UNPKG

@asyncapi/specs

Version:
37 lines (36 loc) 890 B
{ "type": "object", "additionalProperties": false, "anyOf": [ { "required": [ "payload" ] }, { "required": [ "headers" ] } ], "properties": { "name": { "type": "string", "description": "Machine readable name of the message example." }, "summary": { "type": "string", "description": "A brief summary of the message example." }, "headers": { "type": "object", "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." } }, "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://asyncapi.com/definitions/3.0.0/messageExampleObject.json" }