packages feed

asyncapi3-1.0.0.0: test/golden/examples/reference-examples-application-headers-asyncapi.yml.json

{"asyncapi":"3.1.0","info":{"title":"Application Headers example","version":"1.0.0","description":"A cut of the Streetlights API to test application header changes supporting","license":{"name":"Apache 2.0","url":"https://www.apache.org/licenses/LICENSE-2.0"}},"servers":{"production":{"host":"test.mosquitto.org:{port}","protocol":"mqtt","description":"Test broker","variables":{"port":{"enum":["1883","8883"],"default":"1883","description":"Secure connection (TLS) is available through port 8883."}}}},"defaultContentType":"application/json","channels":{"lightingMeasured":{"address":"smartylighting/streetlights/1/0/event/{streetlightId}/lighting/measured","messages":{"lightMeasured":{"$ref":"#/components/messages/lightMeasured"}},"parameters":{"streetlightId":{"$ref":"#/components/parameters/streetlightId"}}}},"operations":{"receiveLightMeasurement":{"action":"receive","channel":{"$ref":"#/channels/lightingMeasured"},"summary":"Inform about environmental lighting conditions of a particular streetlight.","messages":[{"$ref":"#/channels/lightingMeasured/messages/lightMeasured"}]}},"components":{"schemas":{"applicationInstanceId":{"type":"string","description":"Unique identifier for a given instance of the publishing application"},"lightMeasuredPayload":{"type":"object","properties":{"lumens":{"type":"integer","minimum":0,"description":"Light intensity measured in lumens."},"sentAt":{"$ref":"#/components/schemas/sentAt"}}},"sentAt":{"type":"string","description":"Date and time when the message was sent.","format":"date-time"}},"messages":{"lightMeasured":{"headers":{"type":"object","properties":{"MQMD":{"type":"object","properties":{"CorrelId":{"type":"string","maxLength":24,"minLength":24,"format":"binary"}}},"applicationInstanceId":{"$ref":"#/components/schemas/applicationInstanceId"}}},"payload":{"$ref":"#/components/schemas/lightMeasuredPayload"},"correlationId":{"location":"$message.header#/MQMD/CorrelId"},"contentType":"application/json","name":"lightMeasured","title":"Light measured","summary":"Inform about environmental lighting conditions of a particular streetlight."}},"parameters":{"streetlightId":{"description":"The ID of the streetlight."}}}}