Skip to content

Commit

Permalink
feat: add x-origin property
Browse files Browse the repository at this point in the history
  • Loading branch information
aeworxet committed Jan 15, 2024
1 parent 9888099 commit a87a211
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/v3/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,18 @@ export async function parse(JSONSchema: any) {
circular: false,
excludedPathMatcher: (path: string): boolean => {
return (
!!path.match(/#\/channels\/[a-zA-Z0-9]*\/servers/) ||
!!path.match(/#\/operations\/[a-zA-Z0-9]*\/channel/) ||
!!path.match(/#\/operations\/[a-zA-Z0-9]*\/messages/) ||
!!path.match(/#\/operations\/[a-zA-Z0-9]*\/reply\/channel/) ||
!!path.match(/#\/operations\/[a-zA-Z0-9]*\/reply\/messages/) ||
!!path.match(/#\/components\/operations\/[a-zA-Z0-9]*\/channel/) ||
!!path.match(/#\/components\/operations\/[a-zA-Z0-9]*\/messages/) ||
!!path.match(
/#\/components\/operations\/[a-zA-Z0-9]*\/reply\/channel/
!!/#\/channels\/[a-zA-Z0-9]*\/servers/.exec(path) ||

Check failure on line 89 in src/v3/parser.ts

View workflow job for this annotation

GitHub Actions / Test NodeJS PR - ubuntu-latest

Wrap the regexp literal in parens to disambiguate the slash
!!/#\/operations\/[a-zA-Z0-9]*\/channel/.exec(path) ||

Check failure on line 90 in src/v3/parser.ts

View workflow job for this annotation

GitHub Actions / Test NodeJS PR - ubuntu-latest

Wrap the regexp literal in parens to disambiguate the slash
!!/#\/operations\/[a-zA-Z0-9]*\/messages/.exec(path) ||

Check failure on line 91 in src/v3/parser.ts

View workflow job for this annotation

GitHub Actions / Test NodeJS PR - ubuntu-latest

Wrap the regexp literal in parens to disambiguate the slash
!!/#\/operations\/[a-zA-Z0-9]*\/reply\/channel/.exec(path) ||

Check failure on line 92 in src/v3/parser.ts

View workflow job for this annotation

GitHub Actions / Test NodeJS PR - ubuntu-latest

Wrap the regexp literal in parens to disambiguate the slash
!!/#\/operations\/[a-zA-Z0-9]*\/reply\/messages/.exec(path) ||

Check failure on line 93 in src/v3/parser.ts

View workflow job for this annotation

GitHub Actions / Test NodeJS PR - ubuntu-latest

Wrap the regexp literal in parens to disambiguate the slash
!!/#\/components\/operations\/[a-zA-Z0-9]*\/channel/.exec(path) ||
!!/#\/components\/operations\/[a-zA-Z0-9]*\/messages/.exec(path) ||
!!/#\/components\/operations\/[a-zA-Z0-9]*\/reply\/channel/.exec(
path
) ||
!!path.match(
/#\/components\/operations\/[a-zA-Z0-9]*\/reply\/messages/
!!/#\/components\/operations\/[a-zA-Z0-9]*\/reply\/messages/.exec(
path
)
);
},
Expand Down

0 comments on commit a87a211

Please sign in to comment.