Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/spectral

Package Overview
Dependencies
Maintainers
7
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/spectral - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc