Skip to content

Commit 6da58dd

Browse files
authored
Integrate openapi and asyncapi with catalog (#900)
1 parent 136f149 commit 6da58dd

File tree

94 files changed

+3165
-1752
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+3165
-1752
lines changed

incubator/binding-asyncapi.spec/src/main/scripts/io/aklivity/zilla/specs/binding/asyncapi/config/client.http.secure.yaml

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,92 @@
1616

1717
---
1818
name: test
19+
catalogs:
20+
catalog0:
21+
type: test
22+
options:
23+
subject: petstore
24+
schema: |
25+
asyncapi: 3.0.0
26+
info:
27+
title: AsyncAPI Petstore
28+
license:
29+
name: MIT
30+
version: 1.0.0
31+
servers:
32+
plain:
33+
host: localhost:8080
34+
protocol: http
35+
protocolVersion: '2.0'
36+
defaultContentType: application/json
37+
38+
channels:
39+
pets:
40+
address: /pets
41+
messages:
42+
pet:
43+
$ref: '#/components/messages/pet'
44+
showPetById:
45+
address: /pets/{id}
46+
messages:
47+
pet:
48+
$ref: '#/components/messages/pet'
49+
50+
operations:
51+
createPet:
52+
action: send
53+
bindings:
54+
http:
55+
method: POST
56+
channel:
57+
$ref: '#/channels/pets'
58+
listPets:
59+
action: receive
60+
bindings:
61+
http:
62+
method: GET
63+
channel:
64+
$ref: '#/channels/pets'
65+
getPets:
66+
action: receive
67+
bindings:
68+
http:
69+
method: GET
70+
query:
71+
type: object
72+
properties:
73+
limit:
74+
type: number
75+
channel:
76+
$ref: '#/channels/showPetById'
77+
78+
components:
79+
correlationIds:
80+
petsCorrelationId:
81+
location: '$message.header#/idempotency-key'
82+
schemas:
83+
petPayload:
84+
type: object
85+
properties:
86+
id:
87+
type: integer
88+
minimum: 0
89+
description: Pet id.
90+
name:
91+
type: string
92+
description: Pet name.
93+
tag:
94+
type: string
95+
description: Tag.
96+
messages:
97+
pet:
98+
name: Pet
99+
title: Pet
100+
summary: >-
101+
Inform about Pet.
102+
contentType: application/json
103+
payload:
104+
$ref: '#/components/schemas/petPayload'
19105
vaults:
20106
test0:
21107
type: test
@@ -26,7 +112,11 @@ bindings:
26112
vault: test0
27113
options:
28114
specs:
29-
http_api: http/asyncapi.yaml
115+
http_api:
116+
catalog:
117+
catalog0:
118+
subject: petstore
119+
version: latest
30120
tcp:
31121
host: localhost
32122
port:

incubator/binding-asyncapi.spec/src/main/scripts/io/aklivity/zilla/specs/binding/asyncapi/config/client.http.yaml

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,103 @@
1616

1717
---
1818
name: test
19+
catalogs:
20+
catalog0:
21+
type: test
22+
options:
23+
subject: petstore
24+
schema: |
25+
asyncapi: 3.0.0
26+
info:
27+
title: AsyncAPI Petstore
28+
license:
29+
name: MIT
30+
version: 1.0.0
31+
servers:
32+
plain:
33+
host: localhost:8080
34+
protocol: http
35+
protocolVersion: '2.0'
36+
defaultContentType: application/json
37+
38+
channels:
39+
pets:
40+
address: /pets
41+
messages:
42+
pet:
43+
$ref: '#/components/messages/pet'
44+
showPetById:
45+
address: /pets/{id}
46+
messages:
47+
pet:
48+
$ref: '#/components/messages/pet'
49+
50+
operations:
51+
createPet:
52+
action: send
53+
bindings:
54+
http:
55+
method: POST
56+
channel:
57+
$ref: '#/channels/pets'
58+
listPets:
59+
action: receive
60+
bindings:
61+
http:
62+
method: GET
63+
channel:
64+
$ref: '#/channels/pets'
65+
getPets:
66+
action: receive
67+
bindings:
68+
http:
69+
method: GET
70+
query:
71+
type: object
72+
properties:
73+
limit:
74+
type: number
75+
channel:
76+
$ref: '#/channels/showPetById'
77+
78+
components:
79+
correlationIds:
80+
petsCorrelationId:
81+
location: '$message.header#/idempotency-key'
82+
schemas:
83+
petPayload:
84+
type: object
85+
properties:
86+
id:
87+
type: integer
88+
minimum: 0
89+
description: Pet id.
90+
name:
91+
type: string
92+
description: Pet name.
93+
tag:
94+
type: string
95+
description: Tag.
96+
messages:
97+
pet:
98+
name: Pet
99+
title: Pet
100+
summary: >-
101+
Inform about Pet.
102+
contentType: application/json
103+
payload:
104+
$ref: '#/components/schemas/petPayload'
19105
bindings:
20106
asyncapi0:
21107
type: asyncapi
22108
kind: client
23109
options:
24110
specs:
25-
http_api: http/asyncapi.yaml
111+
http_api:
112+
catalog:
113+
catalog0:
114+
subject: petstore
115+
version: latest
26116
tcp:
27117
host: localhost
28118
port:

0 commit comments

Comments
 (0)