-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add support for AsyncAPI v3 (#526)
Co-authored-by: Sergio Moya <1083296+smoya@users.noreply.github.com>%0ACo-authored-by: asyncapi-bot <bot+chan@asyncapi.io>%0ACo-authored-by: Fran Mendez <fmvilas@gmail.com>%0ACo-authored-by: Fran Méndez <fmvilas@gmail.com>%0ACo-authored-by: Heiko Henning <greenrover33@gmail.com>%0ACo-authored-by: souvik <souvikde.ns@gmail.com>%0ACo-authored-by: Maciej Urbańczyk <urbanczyk.maciej.95@gmail.com>%0ACo-authored-by: Matatjahu <urbanczyk.maciej.95@gmail.com>
- Loading branch information
1 parent
5c833ce
commit 4799f2a
Showing
143 changed files
with
11,811 additions
and
3,256 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Disable specific duplicate code since it would introduce more complexity to reduce it. | ||
sonar.cpd.exclusions=src/models/**/*.ts | ||
sonar.cpd.exclusions=src/models/**/*.ts,src/spec-types/*.ts | ||
sonar.exclusions=test/**/* |
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,26 @@ | ||
# Migrating from v2 to v3 | ||
|
||
The ONLY thing that changes between v2 and v3 is that we now use [parser API v3](https://github.com/asyncapi/parser-api/commit/954a59e41ccdb70de51eb43901f61b79198fbb51) where v2 used [parser API v1](https://github.com/asyncapi/parser-api/commit/7dab1eeb796f8c8c079e5d0c4d671d55a60bc8ca). | ||
|
||
## Parser API v1 to v3 | ||
There are only very few changes, for message and message traits. | ||
|
||
## Message | ||
|
||
```diff | ||
- - messageId(): `string` | `undefined` | ||
- - schemaFormat(): `string` | ||
+ - schemaFormat(): `string` | `undefined` | ||
``` | ||
|
||
Since `messageId` have been removed, you need to use `id` instead. | ||
|
||
## MessageTrait | ||
|
||
```diff | ||
- - messageId(): `string` | `undefined` | ||
- - schemaFormat(): `string` | ||
+ - schemaFormat(): `string` | `undefined` | ||
``` | ||
|
||
Since `messageId` have been removed, you need to use `id` instead. |
Oops, something went wrong.