Skip to content

Commit

Permalink
fix apiVersion type
Browse files Browse the repository at this point in the history
  • Loading branch information
smoya committed Oct 4, 2023
1 parent 43db0dd commit e860d45
Showing 1 changed file with 2 additions and 2 deletions.
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/[email protected] but @asyncapi/[email protected], 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/[email protected] (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/[email protected] (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 e860d45

Please sign in to comment.