From 107456e96abc69cd193a383094d675dcf0c22882 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Tue, 7 Nov 2023 12:31:08 +0100 Subject: [PATCH 1/2] fix: change ParserAPIVersion constant to 3 --- src/models/asyncapi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index ce1e2b8a5..cd08f7d48 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -11,8 +11,8 @@ import type { ServersInterface } from './servers'; import type { v2, v3 } from '../spec-types'; -// https://github.com/asyncapi/parser-api/releases/tag/v2.0.0 -export const ParserAPIVersion = 2; +// https://github.com/asyncapi/parser-api/releases/tag/v3.0.0 +export const ParserAPIVersion = 3; export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { version(): string; From 1d15cb451fce2b8ffffcda0a4f9ab9e005942d00 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Tue, 7 Nov 2023 12:38:20 +0100 Subject: [PATCH 2/2] changed API compatibility matrix in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7dcf99ff9..69ff0073a 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ The following table shows a compatibility matrix between this parser, and the [P | Parser-JS | Parser-API | Spec 2.x | Spec 3.x | |-----------|-----------------------------------------------------------------------|----------|----------| | 2.x | [1.x](https://github.com/asyncapi/parser-api/blob/v1.0.0/docs/v1.md) | ✓ | | -| 3.x | [2.x](https://github.com/asyncapi/parser-api/blob/v2.0.0/docs/api.md) | ✓ | ✓ | +| 3.x | [3.x](https://github.com/asyncapi/parser-api/blob/v3.0.0/docs/api.md) | ✓ | ✓ | - `✓` Fully supported version. - `-` The AsyncAPI Spec version has features the Parser-JS can't use but the rest are fully supported.