Skip to content

Commit

Permalink
chore: update @smoya/multi-parser to last version (#827)
Browse files Browse the repository at this point in the history
Co-authored-by: souvik <souvikde.ns@gmail.com>
  • Loading branch information
smoya and Souvikns authored Oct 4, 2023
1 parent ab5e8f4 commit 5f9c4e4
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 11 deletions.
78 changes: 70 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@oclif/core": "^1.26.2",
"@oclif/errors": "^1.3.6",
"@oclif/plugin-not-found": "^2.3.22",
"@smoya/multi-parser": "^3.0.0",
"@smoya/multi-parser": "^4.0.0",
"@stoplight/spectral-cli": "6.9.0",
"ajv": "^8.12.0",
"chalk": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/commands/generate/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ export default class Models extends Command {
}

// Modelina, atm, is not using @asyncapi/parser@v3.x but @asyncapi/parser@v2.x, so it still uses Parser-API v1.0.0.
// This call converts the parsed document object using @asyncapi/parser@v3.x (Parser-API v2.0.0) to a document compatible with the Parser-API version in use in @asyncapi/parser@v2.x (v1.0.0)
// This call converts the parsed document object using @asyncapi/parser@v3.x (Parser-API v2) to a document compatible with the Parser-API version in use in @asyncapi/parser@v2.x (v1)
// This is needed until https://github.com/asyncapi/modelina/issues/1493 gets fixed.
const convertedDoc = ConvertDocumentParserAPIVersion(document.json(), '1.0.0');
const convertedDoc = ConvertDocumentParserAPIVersion(document.json(), 1);

Logger.setLogger({
info: (message) => {
Expand Down

0 comments on commit 5f9c4e4

Please sign in to comment.