-
-
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.
feat: create AsyncAPI 3.0.0 specification from template
- Loading branch information
Showing
3 changed files
with
77 additions
and
0 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
46 changes: 46 additions & 0 deletions
46
src/main/resources/fileTemplates/internal/AsyncAPI schema 3 (json).json.ft
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,46 @@ | ||
{ | ||
"asyncapi": "3.0.0", | ||
"info": { | ||
"title": "Account Service", | ||
"version": "1.0.0", | ||
"description": "This service is in charge of processing user signups :rocket:" | ||
}, | ||
"channels": { | ||
"userSignedup": { | ||
"address": "user/signedup", | ||
"messages": { | ||
"userSignedupMessage": { | ||
"\$ref": "#/components/messages/UserSignedUp" | ||
} | ||
} | ||
} | ||
}, | ||
"operations": { | ||
"processUserSignups": { | ||
"action": "receive", | ||
"channel": { | ||
"\$ref": "#/channels/userSignedup" | ||
} | ||
} | ||
}, | ||
"components": { | ||
"messages": { | ||
"UserSignedUp": { | ||
"payload": { | ||
"type": "object", | ||
"properties": { | ||
"displayName": { | ||
"type": "string", | ||
"description": "Name of the user" | ||
}, | ||
"email": { | ||
"type": "string", | ||
"format": "email", | ||
"description": "Email of the user" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/resources/fileTemplates/internal/AsyncAPI schema 3 (yaml).yaml.ft
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,29 @@ | ||
asyncapi: 3.0.0 | ||
info: | ||
title: Account Service | ||
version: 1.0.0 | ||
description: "This service is in charge of processing user signups :rocket:" | ||
channels: | ||
userSignedup: | ||
address: "user/signedup" | ||
messages: | ||
userSignedupMessage: | ||
\$ref: "#/components/messages/UserSignedUp" | ||
operations: | ||
processUserSignups: | ||
action: "receive" | ||
channel: | ||
\$ref: "#/channels/userSignedup" | ||
components: | ||
messages: | ||
UserSignedUp: | ||
payload: | ||
type: object | ||
properties: | ||
displayName: | ||
type: string | ||
description: Name of the user | ||
email: | ||
type: string | ||
format: email | ||
description: Email of the user |