Skip to content

Commit

Permalink
feat: support for protobuf schemas (#786)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukasz Gornicki <[email protected]>
  • Loading branch information
GreenRover and derberg authored Sep 12, 2023
1 parent 385842d commit 7c27b39
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
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 @@ -18,6 +18,7 @@
"@asyncapi/optimizer": "^0.2.1",
"@asyncapi/parser": "^2.1.0",
"@asyncapi/raml-dt-schema-parser": "^4.0.3",
"@asyncapi/protobuf-schema-parser": "3.0.0",
"@asyncapi/studio": "^0.17.3",
"@oclif/core": "^1.26.2",
"@oclif/errors": "^1.3.6",
Expand Down
1 change: 1 addition & 0 deletions src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ declare module '@asyncapi/specs';
declare module '@asyncapi/openapi-schema-parser';
declare module '@asyncapi/avro-schema-parser';
declare module '@asyncapi/raml-dt-schema-parser';
declare module '@asyncapi/protobuf-schema-parser';
2 changes: 2 additions & 0 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Parser, convertToOldAPI } from '@asyncapi/parser/cjs';
import { AvroSchemaParser } from '@asyncapi/avro-schema-parser';
import { OpenAPISchemaParser } from '@asyncapi/openapi-schema-parser';
import { RamlDTSchemaParser } from '@asyncapi/raml-dt-schema-parser';
import { ProtoBuffSchemaParser } from '@asyncapi/protobuf-schema-parser';
import { getDiagnosticSeverity } from '@stoplight/spectral-core';
import { html, json, junit, stylish, teamcity, text, pretty } from '@stoplight/spectral-cli/dist/formatters';
import { OutputFormat } from '@stoplight/spectral-cli/dist/services/config';
Expand All @@ -26,6 +27,7 @@ const parser = new Parser({
parser.registerSchemaParser(AvroSchemaParser());
parser.registerSchemaParser(OpenAPISchemaParser());
parser.registerSchemaParser(RamlDTSchemaParser());
parser.registerSchemaParser(ProtoBuffSchemaParser());

export interface ValidationFlagsOptions {
logDiagnostics?: boolean;
Expand Down

0 comments on commit 7c27b39

Please sign in to comment.