-
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: json file supported in asyncapi new file command (#1713)
Co-authored-by: Sumitwarrior7 <[email protected]> Co-authored-by: Moderator <[email protected]>
- Loading branch information
1 parent
0c7928d
commit 819b585
Showing
4 changed files
with
76 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@asyncapi/cli": patch | ||
--- | ||
|
||
[Fix]: Json file supported in asyncapi new file command |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"asyncapi": "3.0.0", | ||
"info": { | ||
"title": "Account Service", | ||
"version": "1.0.0", | ||
"description": "This service is in charge of processing user signups" | ||
}, | ||
"channels": { | ||
"userSignedUp": { | ||
"address": "user/signedup", | ||
"messages": { | ||
"UserSignedUp": { | ||
"$ref": "#/components/messages/UserSignedUp" | ||
} | ||
} | ||
} | ||
}, | ||
"operations": { | ||
"onUserSignUp": { | ||
"action": "receive", | ||
"channel": { | ||
"$ref": "#/channels/userSignedUp" | ||
}, | ||
"messages": [ | ||
{ | ||
"$ref": "#/channels/userSignedUp/messages/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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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