Skip to content

Commit

Permalink
feat(editor-preview-asyncapi): add support for protobufs (#4588)
Browse files Browse the repository at this point in the history
This change adds support for parsing protocol buffers
by AsyncAPI parser.
  • Loading branch information
char0n authored Nov 16, 2023
1 parent 64ebb1f commit d2ed2c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"dependencies": {
"@asyncapi/avro-schema-parser": "^1.1.0",
"@asyncapi/openapi-schema-parser": "^2.0.3",
"@asyncapi/protobuf-schema-parser": "^1.0.0",
"@asyncapi/parser": "^1.18.1",
"@asyncapi/react-component": "=1.0.0-next.48",
"@babel/runtime": "^7.23.2",
Expand Down
4 changes: 3 additions & 1 deletion src/plugins/editor-preview-asyncapi/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import ShortUniqueId from 'short-unique-id';
import { parse as parseAsyncAPIDefinition, registerSchemaParser } from '@asyncapi/parser';
import * as openapiSchemaParser from '@asyncapi/openapi-schema-parser';
import * as avroSchemaParser from '@asyncapi/avro-schema-parser';
import * as protobufSchemaParser from '@asyncapi/protobuf-schema-parser';

import * as ramlSchemaParser from './util/raml-1-0-parser.js';

registerSchemaParser(openapiSchemaParser);
registerSchemaParser(ramlSchemaParser);
registerSchemaParser(avroSchemaParser);
registerSchemaParser(protobufSchemaParser);
registerSchemaParser(ramlSchemaParser);

/**
* Action types.
Expand Down

0 comments on commit d2ed2c6

Please sign in to comment.