diff --git a/apps/studio/src/services/parser.service.ts b/apps/studio/src/services/parser.service.ts index 0fd3a5650..fc01d535b 100644 --- a/apps/studio/src/services/parser.service.ts +++ b/apps/studio/src/services/parser.service.ts @@ -10,6 +10,7 @@ import { filesState, documentsState, settingsState } from '../state'; import type { Diagnostic, ParseOptions } from '@asyncapi/parser/cjs'; import type { DocumentDiagnostics } from '../state/documents.state'; +import { SchemaParser } from '@asyncapi/parser'; export class ParserService extends AbstractService { private parser!: Parser; @@ -17,8 +18,9 @@ export class ParserService extends AbstractService { override async onInit() { this.parser = new Parser({ schemaParsers: [ - OpenAPISchemaParser(), - AvroSchemaParser(), + // Temporary fix for TS error + OpenAPISchemaParser() as SchemaParser, + AvroSchemaParser() as SchemaParser, ], __unstable: { resolver: {