@asyncapi/parser
Advanced tools
Comparing version 2.0.0-next-major.16 to 2.0.0-next-major.17
@@ -37,2 +37,15 @@ import type { Parser } from '../../parser'; | ||
}; | ||
'asyncapi2-channel-no-query-nor-fragment': { | ||
description: string; | ||
severity: string; | ||
recommended: boolean; | ||
given: string; | ||
then: { | ||
field: string; | ||
function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<string, import("@stoplight/spectral-functions").PatternOptions>; | ||
functionOptions: { | ||
notMatch: string; | ||
}; | ||
}; | ||
}; | ||
/** | ||
@@ -233,14 +246,2 @@ * Channel Object rules | ||
}; | ||
'asyncapi2-channel-no-query-nor-fragment': { | ||
description: string; | ||
recommended: boolean; | ||
given: string; | ||
then: { | ||
field: string; | ||
function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<string, import("@stoplight/spectral-functions").PatternOptions>; | ||
functionOptions: { | ||
notMatch: string; | ||
}; | ||
}; | ||
}; | ||
'asyncapi2-channel-no-trailing-slash': { | ||
@@ -247,0 +248,0 @@ description: string; |
@@ -49,2 +49,15 @@ "use strict"; | ||
}, | ||
'asyncapi2-channel-no-query-nor-fragment': { | ||
description: 'Channel address should not include query ("?") or fragment ("#") delimiter.', | ||
severity: 'error', | ||
recommended: true, | ||
given: '$.channels', | ||
then: { | ||
field: '@key', | ||
function: spectral_functions_1.pattern, | ||
functionOptions: { | ||
notMatch: '[\\?#]', | ||
}, | ||
}, | ||
}, | ||
/** | ||
@@ -282,14 +295,2 @@ * Channel Object rules | ||
}, | ||
'asyncapi2-channel-no-query-nor-fragment': { | ||
description: 'Channel address should not include query ("?") or fragment ("#") delimiter.', | ||
recommended: true, | ||
given: '$.channels', | ||
then: { | ||
field: '@key', | ||
function: spectral_functions_1.pattern, | ||
functionOptions: { | ||
notMatch: '[\\?#]', | ||
}, | ||
}, | ||
}, | ||
'asyncapi2-channel-no-trailing-slash': { | ||
@@ -296,0 +297,0 @@ description: 'Channel address should not end with slash.', |
@@ -37,2 +37,15 @@ import type { Parser } from '../../parser'; | ||
}; | ||
'asyncapi2-channel-no-query-nor-fragment': { | ||
description: string; | ||
severity: string; | ||
recommended: boolean; | ||
given: string; | ||
then: { | ||
field: string; | ||
function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<string, import("@stoplight/spectral-functions").PatternOptions>; | ||
functionOptions: { | ||
notMatch: string; | ||
}; | ||
}; | ||
}; | ||
/** | ||
@@ -233,14 +246,2 @@ * Channel Object rules | ||
}; | ||
'asyncapi2-channel-no-query-nor-fragment': { | ||
description: string; | ||
recommended: boolean; | ||
given: string; | ||
then: { | ||
field: string; | ||
function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<string, import("@stoplight/spectral-functions").PatternOptions>; | ||
functionOptions: { | ||
notMatch: string; | ||
}; | ||
}; | ||
}; | ||
'asyncapi2-channel-no-trailing-slash': { | ||
@@ -247,0 +248,0 @@ description: string; |
@@ -46,2 +46,15 @@ /* eslint-disable sonarjs/no-duplicate-string */ | ||
}, | ||
'asyncapi2-channel-no-query-nor-fragment': { | ||
description: 'Channel address should not include query ("?") or fragment ("#") delimiter.', | ||
severity: 'error', | ||
recommended: true, | ||
given: '$.channels', | ||
then: { | ||
field: '@key', | ||
function: pattern, | ||
functionOptions: { | ||
notMatch: '[\\?#]', | ||
}, | ||
}, | ||
}, | ||
/** | ||
@@ -278,14 +291,2 @@ * Channel Object rules | ||
}, | ||
'asyncapi2-channel-no-query-nor-fragment': { | ||
description: 'Channel address should not include query ("?") or fragment ("#") delimiter.', | ||
recommended: true, | ||
given: '$.channels', | ||
then: { | ||
field: '@key', | ||
function: pattern, | ||
functionOptions: { | ||
notMatch: '[\\?#]', | ||
}, | ||
}, | ||
}, | ||
'asyncapi2-channel-no-trailing-slash': { | ||
@@ -292,0 +293,0 @@ description: 'Channel address should not end with slash.', |
{ | ||
"name": "@asyncapi/parser", | ||
"version": "2.0.0-next-major.16", | ||
"version": "2.0.0-next-major.17", | ||
"description": "JavaScript AsyncAPI parser.", | ||
@@ -5,0 +5,0 @@ "bugs": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1852814
21931