Skip to content

Commit

Permalink
fix: change ParserAPIVersion constant to 3 (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
smoya authored Nov 7, 2023
1 parent abb2717 commit 2978ee5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/models/asyncapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<v2.AsyncAPIObject | v3.AsyncAPIObject>, ExtensionsMixinInterface {
version(): string;
Expand Down

0 comments on commit 2978ee5

Please sign in to comment.