Skip to content

Commit

Permalink
feat: Support Avro schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Amzani committed Dec 11, 2023
1 parent 169c107 commit ac38cb9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@asyncapi/converter": "^1.4.5",
"@asyncapi/openapi-schema-parser": "^3.0.4",
"@asyncapi/parser": "^3.0.1",
"@asyncapi/protobuf-schema-parser": "^3.0.4",
"@asyncapi/react-component": "^1.2.2",
"@asyncapi/specs": "^6.1.0",
"@ebay/nice-modal-react": "^1.2.10",
Expand Down
2 changes: 2 additions & 0 deletions apps/studio/src/services/parser.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { AbstractService } from './abstract.service';
import { Parser, DiagnosticSeverity } from '@asyncapi/parser/cjs';
import { OpenAPISchemaParser } from '@asyncapi/openapi-schema-parser';
import { AvroSchemaParser } from '@asyncapi/avro-schema-parser';
import { ProtoBuffSchemaParser } from '@asyncapi/protobuf-schema-parser';
import { untilde } from '@asyncapi/parser/cjs/utils';

import { isDeepEqual } from '../helpers';
Expand All @@ -21,6 +22,7 @@ export class ParserService extends AbstractService {
// Temporary fix for TS error
OpenAPISchemaParser() as SchemaParser<unknown, unknown>,
AvroSchemaParser() as SchemaParser<unknown, unknown>,
ProtoBuffSchemaParser() as SchemaParser<unknown, unknown>,
],
__unstable: {
resolver: {
Expand Down
24 changes: 23 additions & 1 deletion package-lock.json

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

0 comments on commit ac38cb9

Please sign in to comment.