Skip to content

Commit

Permalink
fix: Migrated asyncapi.json examples to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
ctasada committed Jan 9, 2024
1 parent 4b14fb7 commit 433f496
Show file tree
Hide file tree
Showing 5 changed files with 569 additions and 299 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"asyncapi": "2.6.0",
"asyncapi": "3.0.0",
"info": {
"title": "Springwolf example project - Cloud Stream",
"version": "1.0.0",
Expand All @@ -12,90 +12,129 @@
"license": {
"name": "Apache License 2.0"
},
"tags": [],
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
"kafka": {
"url": "kafka:29092",
"host": "kafka:29092",
"protocol": "kafka"
}
},
"channels": {
"another-topic": {
"subscribe": {
"operationId": "another-topic_subscribe_process",
"description": "Auto-generated description",
"bindings": {
"kafka": { }
},
"message": {
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"address": "another-topic",
"messages": {
"another-topic_publish_consumerMethod.message": {
"name": "io.github.stavshamir.springwolf.example.cloudstream.dtos.AnotherPayloadDto",
"title": "AnotherPayloadDto",
"payload": {
"$ref": "#/components/schemas/AnotherPayloadDto"
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"schema": {
"$ref": "#/components/schemas/AnotherPayloadDto"
}
},
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
"bindings": {
"kafka": { }
"kafka": {}
}
}
},
"publish": {
"operationId": "another-topic_publish_consumerMethod",
"description": "Auto-generated description",
"bindings": {
"kafka": { }
},
"message": {
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"another-topic_subscribe_process.message": {
"name": "io.github.stavshamir.springwolf.example.cloudstream.dtos.AnotherPayloadDto",
"title": "AnotherPayloadDto",
"payload": {
"$ref": "#/components/schemas/AnotherPayloadDto"
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"schema": {
"$ref": "#/components/schemas/AnotherPayloadDto"
}
},
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
"bindings": {
"kafka": { }
"kafka": {}
}
}
},
"bindings": {
"kafka": { }
"kafka": {}
}
},
"example-topic": {
"publish": {
"operationId": "example-topic_publish_process",
"description": "Auto-generated description",
"bindings": {
"kafka": { }
},
"message": {
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"address": "example-topic",
"messages": {
"example-topic_publish_process.message": {
"name": "io.github.stavshamir.springwolf.example.cloudstream.dtos.ExamplePayloadDto",
"title": "ExamplePayloadDto",
"payload": {
"$ref": "#/components/schemas/ExamplePayloadDto"
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"schema": {
"$ref": "#/components/schemas/ExamplePayloadDto"
}
},
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
"bindings": {
"kafka": { }
"kafka": {}
}
}
},
"bindings": {
"kafka": { }
"kafka": {}
}
}
},
"operations": {
"another-topic_publish_consumerMethod": {
"action": "receive",
"channel": {
"$ref": "#/channels/another-topic"
},
"description": "Auto-generated description",
"bindings": {
"kafka": {}
},
"messages": [
{
"$ref": "#/channels/another-topic/messages/another-topic_publish_consumerMethod.message"
}
]
},
"another-topic_subscribe_process": {
"action": "send",
"channel": {
"$ref": "#/channels/another-topic"
},
"description": "Auto-generated description",
"bindings": {
"kafka": {}
},
"messages": [
{
"$ref": "#/channels/another-topic/messages/another-topic_subscribe_process.message"
}
]
},
"example-topic_publish_process": {
"action": "receive",
"channel": {
"$ref": "#/channels/example-topic"
},
"description": "Auto-generated description",
"bindings": {
"kafka": {}
},
"messages": [
{
"$ref": "#/channels/example-topic/messages/example-topic_publish_process.message"
}
]
}
},
"components": {
"schemas": {
"AnotherPayloadDto": {
Expand Down Expand Up @@ -161,10 +200,9 @@
},
"HeadersNotDocumented": {
"type": "object",
"properties": { },
"example": { }
"properties": {},
"example": {}
}
}
},
"tags": [ ]
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"asyncapi": "2.6.0",
"asyncapi": "3.0.0",
"info": {
"title": "Springwolf example project - JMS",
"version": "1.0.0",
Expand All @@ -12,99 +12,138 @@
"license": {
"name": "Apache License 2.0"
},
"tags": [],
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
"jms": {
"url": "tcp://activemq:61616",
"host": "activemq:61616",
"protocol": "jms"
}
},
"channels": {
"another-queue": {
"subscribe": {
"operationId": "another-queue_subscribe",
"description": "Custom, optional description defined in the AsyncPublisher annotation",
"bindings": {
"jms": {
"internal-field": "customValue",
"nested": {
"key": "nestedValue"
}
}
},
"message": {
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"address": "another-queue",
"messages": {
"another-queue_publish_receiveAnotherPayload.message": {
"name": "io.github.stavshamir.springwolf.example.jms.dtos.AnotherPayloadDto",
"title": "AnotherPayloadDto",
"description": "Another payload model",
"payload": {
"$ref": "#/components/schemas/io.github.stavshamir.springwolf.example.jms.dtos.AnotherPayloadDto"
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"schema": {
"$ref": "#/components/schemas/io.github.stavshamir.springwolf.example.jms.dtos.AnotherPayloadDto"
}
},
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
"bindings": {
"jms": { }
"jms": {}
}
}
},
"publish": {
"operationId": "another-queue_publish_receiveAnotherPayload",
"description": "Auto-generated description",
"bindings": {
"jms": { }
},
"message": {
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"another-queue_subscribe.message": {
"name": "io.github.stavshamir.springwolf.example.jms.dtos.AnotherPayloadDto",
"title": "AnotherPayloadDto",
"description": "Another payload model",
"payload": {
"$ref": "#/components/schemas/io.github.stavshamir.springwolf.example.jms.dtos.AnotherPayloadDto"
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"schema": {
"$ref": "#/components/schemas/io.github.stavshamir.springwolf.example.jms.dtos.AnotherPayloadDto"
}
},
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
"bindings": {
"jms": { }
"jms": {}
}
}
}
},
"example-queue": {
"publish": {
"operationId": "example-queue_publish_receiveExamplePayload",
"description": "Auto-generated description",
"bindings": {
"jms": { }
},
"message": {
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"address": "example-queue",
"messages": {
"example-queue_publish_receiveExamplePayload.message": {
"name": "io.github.stavshamir.springwolf.example.jms.dtos.ExamplePayloadDto",
"title": "ExamplePayloadDto",
"payload": {
"$ref": "#/components/schemas/io.github.stavshamir.springwolf.example.jms.dtos.ExamplePayloadDto"
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"schema": {
"$ref": "#/components/schemas/io.github.stavshamir.springwolf.example.jms.dtos.ExamplePayloadDto"
}
},
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
"bindings": {
"jms": { }
"jms": {}
}
}
},
"bindings": {
"jms": { }
"jms": {}
}
}
},
"operations": {
"another-queue_publish_receiveAnotherPayload": {
"action": "receive",
"channel": {
"$ref": "#/channels/another-queue"
},
"description": "Auto-generated description",
"bindings": {
"jms": {}
},
"messages": [
{
"$ref": "#/channels/another-queue/messages/another-queue_publish_receiveAnotherPayload.message"
}
]
},
"another-queue_subscribe": {
"action": "send",
"channel": {
"$ref": "#/channels/another-queue"
},
"description": "Custom, optional description defined in the AsyncPublisher annotation",
"bindings": {
"jms": {
"internal-field": "customValue",
"nested": {
"key": "nestedValue"
}
}
},
"messages": [
{
"$ref": "#/channels/another-queue/messages/another-queue_subscribe.message"
}
]
},
"example-queue_publish_receiveExamplePayload": {
"action": "receive",
"channel": {
"$ref": "#/channels/example-queue"
},
"description": "Auto-generated description",
"bindings": {
"jms": {}
},
"messages": [
{
"$ref": "#/channels/example-queue/messages/example-queue_publish_receiveExamplePayload.message"
}
]
}
},
"components": {
"schemas": {
"HeadersNotDocumented": {
"type": "object",
"properties": { },
"example": { }
"properties": {},
"example": {}
},
"io.github.stavshamir.springwolf.example.jms.dtos.AnotherPayloadDto": {
"required": [
Expand Down Expand Up @@ -168,6 +207,5 @@
}
}
}
},
"tags": [ ]
}
}
Loading

0 comments on commit 433f496

Please sign in to comment.