-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Joris Molnar <joris.molnar@mediaan.com> Co-authored-by: Maciej Urbańczyk <urbanczyk.maciej.95@gmail.com>
- Loading branch information
1 parent
e423572
commit 0053f39
Showing
8 changed files
with
61 additions
and
3 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
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 |
---|---|---|
@@ -1 +1,5 @@ | ||
declare module '@asyncapi/specs'; | ||
|
||
declare module '@asyncapi/openapi-schema-parser'; | ||
declare module '@asyncapi/avro-schema-parser'; | ||
declare module '@asyncapi/raml-dt-schema-parser'; |
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,10 @@ | ||
import { parse, registerSchemaParser } from '@asyncapi/parser'; | ||
import openapiSchemaParser from '@asyncapi/openapi-schema-parser'; | ||
import avroSchemaParser from '@asyncapi/avro-schema-parser'; | ||
import ramlDtSchemaParser from '@asyncapi/raml-dt-schema-parser'; | ||
|
||
registerSchemaParser(openapiSchemaParser); | ||
registerSchemaParser(avroSchemaParser); | ||
registerSchemaParser(ramlDtSchemaParser); | ||
|
||
export { parse }; |
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,25 @@ | ||
asyncapi: 2.2.0 | ||
info: | ||
title: Account Service | ||
version: 1.0.0 | ||
description: This service is in charge of processing user signups | ||
channels: | ||
user/signedup: | ||
subscribe: | ||
message: | ||
$ref: '#/components/messages/UserSignedUp' | ||
components: | ||
messages: | ||
UserSignedUp: | ||
schemaFormat: 'application/vnd.apache.avro;version=1.9.0' | ||
payload: | ||
type: record | ||
namespace: com.example | ||
name: User | ||
fields: | ||
- name: displayName | ||
type: string | ||
doc: Name of the user | ||
- name: email | ||
type: string | ||
doc: Email of the user |