-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change how the map is populated for channels found via AsyncApiCompon…
…ent and for Channel annotations to handle the fact that not all of them will be named based on their class and that will only happen if they target a class instead of a function.
- Loading branch information
Charles Bazeley
committed
Dec 17, 2024
1 parent
6e158c4
commit 7a428bd
Showing
6 changed files
with
122 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
kotlin-asyncapi-context/src/test/resources/annotation/async_api_component.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...in-asyncapi-spring-web/src/test/resources/async_api_component_annotation_integration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"asyncapi": "2.4.0", | ||
"info": { | ||
"title": "testTitle", | ||
"version": "testVersion" | ||
}, | ||
"channels": { | ||
"my/channel": { | ||
"$ref": "#/components/channels/TestChannel" | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"TestMessage": { | ||
"required": [ | ||
"value" | ||
], | ||
"type": "object", | ||
"properties": { | ||
"value": { | ||
"type": "string", | ||
"exampleSetFlag": false, | ||
"types": [ | ||
"string" | ||
] | ||
}, | ||
"optionalValue": { | ||
"type": "boolean", | ||
"exampleSetFlag": false, | ||
"types": [ | ||
"boolean" | ||
] | ||
} | ||
}, | ||
"exampleSetFlag": false | ||
} | ||
}, | ||
"channels": { | ||
"my/channel": { | ||
"publish": { | ||
"description": "testDescription", | ||
"message": { | ||
"$ref": "#/components/messages/TestMessage" | ||
} | ||
} | ||
} | ||
}, | ||
"messages": { | ||
"TestMessage": { | ||
"payload": { | ||
"$ref": "#/components/schemas/TestMessage" | ||
}, | ||
"schemaFormat": "application/schema+json;version=draft-07" | ||
} | ||
} | ||
} | ||
} |