Skip to content

Commit

Permalink
feat: Support Avro schemas (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amzani authored Dec 12, 2023
1 parent c2c430c commit b81aeaa
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
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
22 changes: 22 additions & 0 deletions package-lock.json

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

0 comments on commit b81aeaa

Please sign in to comment.