UNPKG

@asyncapi/specs

Version:
50 lines (49 loc) 1.36 kB
{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://asyncapi.com/bindings/http/0.1.0/message.json", "title": "HTTP message bindings object", "description": "This object contains information about the message representation in HTTP.", "type": "object", "additionalProperties": false, "patternProperties": { "^x-[\\w\\d\\.\\x2d_]+$": { "$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json" } }, "properties": { "headers": { "oneOf": [ { "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" }, { "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" } ], "description": "\tA Schema object containing the definitions for HTTP-specific headers. This schema MUST be of type 'object' and have a 'properties' key." }, "bindingVersion": { "type": "string", "enum": [ "0.1.0" ], "description": "The version of this binding. If omitted, \"latest\" MUST be assumed." } }, "examples": [ { "headers": { "type": "object", "properties": { "Content-Type": { "type": "string", "enum": [ "application/json" ] } } }, "bindingVersion": "0.1.0" } ] }