|
| 1 | +{ |
| 2 | + "asyncapi": "2.6.0", |
| 3 | + "x-intersect-version": "0.6.4", |
| 4 | + "info": { |
| 5 | + "title": "example-organization.example-facility.example-system.example-subsystem.service-one", |
| 6 | + "version": "0.0.0", |
| 7 | + "description": "Service One Capability.\n" |
| 8 | + }, |
| 9 | + "defaultContentType": "application/json", |
| 10 | + "channels": { |
| 11 | + "pass_text_to_service_2": { |
| 12 | + "publish": { |
| 13 | + "message": { |
| 14 | + "schemaFormat": "application/vnd.aai.asyncapi+json;version=2.6.0", |
| 15 | + "contentType": "application/json", |
| 16 | + "traits": { |
| 17 | + "$ref": "#/components/messageTraits/commonHeaders" |
| 18 | + }, |
| 19 | + "payload": { |
| 20 | + "type": "null" |
| 21 | + } |
| 22 | + }, |
| 23 | + "description": "Takes in a string parameter and sends it to service 2." |
| 24 | + }, |
| 25 | + "subscribe": { |
| 26 | + "message": { |
| 27 | + "schemaFormat": "application/vnd.aai.asyncapi+json;version=2.6.0", |
| 28 | + "contentType": "application/json", |
| 29 | + "traits": { |
| 30 | + "$ref": "#/components/messageTraits/commonHeaders" |
| 31 | + }, |
| 32 | + "payload": { |
| 33 | + "type": "string" |
| 34 | + } |
| 35 | + }, |
| 36 | + "description": "Takes in a string parameter and sends it to service 2." |
| 37 | + }, |
| 38 | + "events": [] |
| 39 | + } |
| 40 | + }, |
| 41 | + "events": { |
| 42 | + "response_event": { |
| 43 | + "type": "string" |
| 44 | + } |
| 45 | + }, |
| 46 | + "components": { |
| 47 | + "schemas": {}, |
| 48 | + "messageTraits": { |
| 49 | + "commonHeaders": { |
| 50 | + "messageHeaders": { |
| 51 | + "$defs": { |
| 52 | + "IntersectDataHandler": { |
| 53 | + "description": "What data transfer type do you want to use for handling the request/response?\n\nDefault: MESSAGE", |
| 54 | + "enum": [ |
| 55 | + 0, |
| 56 | + 1 |
| 57 | + ], |
| 58 | + "title": "IntersectDataHandler", |
| 59 | + "type": "integer" |
| 60 | + } |
| 61 | + }, |
| 62 | + "description": "Matches the current header definition for INTERSECT messages.\n\nALL messages should contain this header.", |
| 63 | + "properties": { |
| 64 | + "source": { |
| 65 | + "description": "source of the message", |
| 66 | + "pattern": "([-a-z0-9]+\\.)*[-a-z0-9]", |
| 67 | + "title": "Source", |
| 68 | + "type": "string" |
| 69 | + }, |
| 70 | + "destination": { |
| 71 | + "description": "destination of the message", |
| 72 | + "pattern": "([-a-z0-9]+\\.)*[-a-z0-9]", |
| 73 | + "title": "Destination", |
| 74 | + "type": "string" |
| 75 | + }, |
| 76 | + "created_at": { |
| 77 | + "description": "the UTC timestamp of message creation", |
| 78 | + "format": "date-time", |
| 79 | + "title": "Created At", |
| 80 | + "type": "string" |
| 81 | + }, |
| 82 | + "sdk_version": { |
| 83 | + "description": "SemVer string of SDK's version, used to check for compatibility", |
| 84 | + "pattern": "^\\d+\\.\\d+\\.\\d+$", |
| 85 | + "title": "Sdk Version", |
| 86 | + "type": "string" |
| 87 | + }, |
| 88 | + "data_handler": { |
| 89 | + "allOf": [ |
| 90 | + { |
| 91 | + "$ref": "#/components/messageTraits/commonHeaders/userspaceHeaders/$defs/IntersectDataHandler" |
| 92 | + } |
| 93 | + ], |
| 94 | + "default": 0, |
| 95 | + "description": "Code signifying where data is stored." |
| 96 | + }, |
| 97 | + "has_error": { |
| 98 | + "default": false, |
| 99 | + "description": "If this value is True, the payload will contain the error message (a string)", |
| 100 | + "title": "Has Error", |
| 101 | + "type": "boolean" |
| 102 | + } |
| 103 | + }, |
| 104 | + "required": [ |
| 105 | + "source", |
| 106 | + "destination", |
| 107 | + "created_at", |
| 108 | + "sdk_version" |
| 109 | + ], |
| 110 | + "title": "UserspaceMessageHeader", |
| 111 | + "type": "object" |
| 112 | + }, |
| 113 | + "eventHeaders": { |
| 114 | + "$defs": { |
| 115 | + "IntersectDataHandler": { |
| 116 | + "description": "What data transfer type do you want to use for handling the request/response?\n\nDefault: MESSAGE", |
| 117 | + "enum": [ |
| 118 | + 0, |
| 119 | + 1 |
| 120 | + ], |
| 121 | + "title": "IntersectDataHandler", |
| 122 | + "type": "integer" |
| 123 | + } |
| 124 | + }, |
| 125 | + "description": "Matches the current header definition for INTERSECT messages.\n\nALL messages should contain this header.", |
| 126 | + "properties": { |
| 127 | + "source": { |
| 128 | + "description": "source of the message", |
| 129 | + "pattern": "([-a-z0-9]+\\.)*[-a-z0-9]", |
| 130 | + "title": "Source", |
| 131 | + "type": "string" |
| 132 | + }, |
| 133 | + "created_at": { |
| 134 | + "description": "the UTC timestamp of message creation", |
| 135 | + "format": "date-time", |
| 136 | + "title": "Created At", |
| 137 | + "type": "string" |
| 138 | + }, |
| 139 | + "sdk_version": { |
| 140 | + "description": "SemVer string of SDK's version, used to check for compatibility", |
| 141 | + "pattern": "^\\d+\\.\\d+\\.\\d+$", |
| 142 | + "title": "Sdk Version", |
| 143 | + "type": "string" |
| 144 | + }, |
| 145 | + "data_handler": { |
| 146 | + "allOf": [ |
| 147 | + { |
| 148 | + "$ref": "#/components/messageTraits/commonHeaders/eventHeaders/$defs/IntersectDataHandler" |
| 149 | + } |
| 150 | + ], |
| 151 | + "default": 0, |
| 152 | + "description": "Code signifying where data is stored." |
| 153 | + }, |
| 154 | + "event_name": { |
| 155 | + "title": "Event Name", |
| 156 | + "type": "string" |
| 157 | + } |
| 158 | + }, |
| 159 | + "required": [ |
| 160 | + "source", |
| 161 | + "created_at", |
| 162 | + "sdk_version", |
| 163 | + "event_name" |
| 164 | + ], |
| 165 | + "title": "EventMessageHeaders", |
| 166 | + "type": "object" |
| 167 | + } |
| 168 | + } |
| 169 | + } |
| 170 | + }, |
| 171 | + "status": { |
| 172 | + "type": "string" |
| 173 | + } |
| 174 | + } |
0 commit comments