{"asyncapi":"2.6.0","id":"urn:ord-playground:events:orders","info":{"title":"Order Events","version":"1.0.0","description":"Lifecycle events of sales orders. `orderId` joins to the Orders OData service, `customerId` to the Customers API.\n\nEvents are [CloudEvents 1.0](https://cloudevents.io) in structured JSON mode."},"servers":{"local":{"url":"events-ord.zazukoians.org","protocol":"wss","description":"Event stream of the playground"}},"defaultContentType":"application/cloudevents+json","channels":{"/ws/orders":{"description":"Lifecycle events of sales orders. `orderId` joins to the Orders OData service, `customerId` to the Customers API.","subscribe":{"operationId":"onOrdersEvent","message":{"$ref":"#/components/messages/OrderStatusChanged"}},"bindings":{"ws":{"bindingVersion":"0.1.0"}}}},"components":{"messages":{"OrderStatusChanged":{"name":"OrderStatusChanged","title":"Order Status Changed","summary":"The status of a sales order changed","contentType":"application/cloudevents+json","payload":{"allOf":[{"$ref":"#/components/schemas/CloudEvent"},{"type":"object","properties":{"type":{"type":"string","const":"zazuko.shop.Order.StatusChanged.v1"},"data":{"type":"object","required":["orderId","customerId","previousStatus","status"],"properties":{"orderId":{"type":"string","example":"O1008"},"customerId":{"type":"string","example":"C004"},"previousStatus":{"$ref":"#/components/schemas/OrderStatus"},"status":{"$ref":"#/components/schemas/OrderStatus"}}}}}]}}},"schemas":{"OrderStatus":{"type":"string","enum":["OPEN","PROCESSING","SHIPPED","DELIVERED","CANCELLED"]},"CloudEvent":{"type":"object","required":["specversion","id","source","type","time","data"],"properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","format":"uuid"},"source":{"type":"string","example":"/ord-playground/order-events"},"type":{"type":"string"},"subject":{"type":"string","description":"ID of the business object the event is about"},"time":{"type":"string","format":"date-time"},"datacontenttype":{"type":"string","const":"application/json"},"data":{"type":"object"}}}}}}