@stoplight/spectral
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@stoplight/spectral", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A flexible object linter with out of the box support for OpenAPI v2 and v3.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -251,2 +251,15 @@ "use strict"; | ||
}, | ||
'operation-operationId-valid-in-url': { | ||
summary: 'operationId may only use characters that are valid when used in a URL.', | ||
type: types_1.RuleType.VALIDATION, | ||
given: exports.operationPath, | ||
then: { | ||
field: 'operationId', | ||
function: types_1.RuleFunction.PATTERN, | ||
functionOptions: { | ||
match: `^[A-Za-z0-9-._~:/?#\\[\\]@!\\$&'()*+,;=]*$`, | ||
}, | ||
}, | ||
tags: ['operation'], | ||
}, | ||
'operation-singular-tag': { | ||
@@ -326,3 +339,3 @@ enabled: false, | ||
functionOptions: { | ||
notMatch: '/$', | ||
notMatch: '.+\\/$', | ||
}, | ||
@@ -329,0 +342,0 @@ }, |
@@ -25,3 +25,3 @@ "use strict"; | ||
'api-servers': { | ||
summary: 'OpenAPI `servers` must be present and non-empty string.', | ||
summary: 'OpenAPI `servers` must be present and non-empty array.', | ||
type: types_1.RuleType.STYLE, | ||
@@ -28,0 +28,0 @@ given: '$', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
228687
5088