|
3 | 3 | "x-intersect-version": "0.7.0", |
4 | 4 | "info": { |
5 | 5 | "title": "hello-organization.hello-facility.hello-system.hello-subsystem.hello-service", |
6 | | - "version": "0.0.0", |
7 | | - "description": "Rudimentary capability implementation example.\n\nAll capability implementations are required to have an @intersect_status decorated function,\nbut we do not use it here.\n\nThe operation we are calling is `say_hello_to_name` , so the message being sent will need to have\nan operationId of `say_hello_to_name`. The operation expects a string sent to it in the payload,\nand will send a string back in its own payload." |
| 6 | + "description": "INTERSECT schema", |
| 7 | + "version": "0.0.0" |
8 | 8 | }, |
9 | 9 | "defaultContentType": "application/json", |
10 | | - "channels": { |
11 | | - "say_hello_to_name": { |
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" |
| 10 | + "capabilities": { |
| 11 | + "HelloExample": { |
| 12 | + "channels": { |
| 13 | + "say_hello_to_name": { |
| 14 | + "publish": { |
| 15 | + "message": { |
| 16 | + "schemaFormat": "application/vnd.aai.asyncapi+json;version=2.6.0", |
| 17 | + "contentType": "application/json", |
| 18 | + "traits": { |
| 19 | + "$ref": "#/components/messageTraits/commonHeaders" |
| 20 | + }, |
| 21 | + "payload": { |
| 22 | + "type": "string" |
| 23 | + } |
| 24 | + }, |
| 25 | + "description": "Takes in a string parameter and says 'Hello' to the parameter!" |
18 | 26 | }, |
19 | | - "payload": { |
20 | | - "type": "string" |
21 | | - } |
22 | | - }, |
23 | | - "description": "Takes in a string parameter and says 'Hello' to the parameter!" |
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" |
| 27 | + "subscribe": { |
| 28 | + "message": { |
| 29 | + "schemaFormat": "application/vnd.aai.asyncapi+json;version=2.6.0", |
| 30 | + "contentType": "application/json", |
| 31 | + "traits": { |
| 32 | + "$ref": "#/components/messageTraits/commonHeaders" |
| 33 | + }, |
| 34 | + "payload": { |
| 35 | + "type": "string" |
| 36 | + } |
| 37 | + }, |
| 38 | + "description": "Takes in a string parameter and says 'Hello' to the parameter!" |
31 | 39 | }, |
32 | | - "payload": { |
33 | | - "type": "string" |
34 | | - } |
35 | | - }, |
36 | | - "description": "Takes in a string parameter and says 'Hello' to the parameter!" |
| 40 | + "events": [] |
| 41 | + } |
37 | 42 | }, |
38 | | - "events": [] |
| 43 | + "description": "Rudimentary capability implementation example.\n\nAll capability implementations are required to have an @intersect_status decorated function,\nbut we do not use it here.\n\nThe operation we are calling is `say_hello_to_name` , so the message being sent will need to have\nan operationId of `say_hello_to_name`. The operation expects a string sent to it in the payload,\nand will send a string back in its own payload." |
39 | 44 | } |
40 | 45 | }, |
41 | 46 | "events": {}, |
| 47 | + "status": { |
| 48 | + "type": "string" |
| 49 | + }, |
42 | 50 | "components": { |
43 | 51 | "schemas": {}, |
44 | 52 | "messageTraits": { |
|
47 | 55 | "$defs": { |
48 | 56 | "IntersectDataHandler": { |
49 | 57 | "description": "What data transfer type do you want to use for handling the request/response?\n\nDefault: MESSAGE", |
50 | | - "enum": [ |
51 | | - 0, |
52 | | - 1 |
53 | | - ], |
| 58 | + "enum": [0, 1], |
54 | 59 | "title": "IntersectDataHandler", |
55 | 60 | "type": "integer" |
56 | 61 | } |
|
97 | 102 | "type": "boolean" |
98 | 103 | } |
99 | 104 | }, |
100 | | - "required": [ |
101 | | - "source", |
102 | | - "destination", |
103 | | - "created_at", |
104 | | - "sdk_version" |
105 | | - ], |
| 105 | + "required": ["source", "destination", "created_at", "sdk_version"], |
106 | 106 | "title": "UserspaceMessageHeader", |
107 | 107 | "type": "object" |
108 | 108 | }, |
109 | 109 | "eventHeaders": { |
110 | 110 | "$defs": { |
111 | 111 | "IntersectDataHandler": { |
112 | 112 | "description": "What data transfer type do you want to use for handling the request/response?\n\nDefault: MESSAGE", |
113 | | - "enum": [ |
114 | | - 0, |
115 | | - 1 |
116 | | - ], |
| 113 | + "enum": [0, 1], |
117 | 114 | "title": "IntersectDataHandler", |
118 | 115 | "type": "integer" |
119 | 116 | } |
|
152 | 149 | "type": "string" |
153 | 150 | } |
154 | 151 | }, |
155 | | - "required": [ |
156 | | - "source", |
157 | | - "created_at", |
158 | | - "sdk_version", |
159 | | - "event_name" |
160 | | - ], |
| 152 | + "required": ["source", "created_at", "sdk_version", "event_name"], |
161 | 153 | "title": "EventMessageHeaders", |
162 | 154 | "type": "object" |
163 | 155 | } |
164 | 156 | } |
165 | 157 | } |
166 | | - }, |
167 | | - "status": { |
168 | | - "type": "string" |
169 | 158 | } |
170 | 159 | } |
0 commit comments