Skip to content

Commit b81aeaa

Browse files
authored
feat: Support Avro schemas (#888)
1 parent c2c430c commit b81aeaa

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

apps/studio/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@asyncapi/converter": "^1.4.5",
2828
"@asyncapi/openapi-schema-parser": "^3.0.4",
2929
"@asyncapi/parser": "^3.0.1",
30+
"@asyncapi/protobuf-schema-parser": "^3.0.4",
3031
"@asyncapi/react-component": "^1.2.2",
3132
"@asyncapi/specs": "^6.1.0",
3233
"@ebay/nice-modal-react": "^1.2.10",

apps/studio/src/services/parser.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { AbstractService } from './abstract.service';
33
import { Parser, DiagnosticSeverity } from '@asyncapi/parser/cjs';
44
import { OpenAPISchemaParser } from '@asyncapi/openapi-schema-parser';
55
import { AvroSchemaParser } from '@asyncapi/avro-schema-parser';
6+
import { ProtoBuffSchemaParser } from '@asyncapi/protobuf-schema-parser';
67
import { untilde } from '@asyncapi/parser/cjs/utils';
78

89
import { isDeepEqual } from '../helpers';
@@ -21,6 +22,7 @@ export class ParserService extends AbstractService {
2122
// Temporary fix for TS error
2223
OpenAPISchemaParser() as SchemaParser<unknown, unknown>,
2324
AvroSchemaParser() as SchemaParser<unknown, unknown>,
25+
ProtoBuffSchemaParser() as SchemaParser<unknown, unknown>,
2426
],
2527
__unstable: {
2628
resolver: {

package-lock.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)