@stoplight/spectral-rulesets
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -33,6 +33,6 @@ "use strict"; | ||
let { schema } = opts; | ||
let dialect; | ||
let dialect = 'draft4'; | ||
let prepareResults; | ||
if (!formats) { | ||
dialect = 'draft4'; | ||
dialect = 'auto'; | ||
} | ||
@@ -39,0 +39,0 @@ else if (formats.has(spectral_formats_1.oas3_1)) { |
{ | ||
"$id": "https://spec.openapis.org/oas/3.1/schema/2021-04-15", | ||
"$id": "https://spec.openapis.org/oas/3.1/schema/2021-09-28", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
@@ -14,3 +14,4 @@ "type": "object", | ||
"jsonSchemaDialect": { | ||
"$ref": "#/$defs/uri", | ||
"type": "string", | ||
"format": "uri", | ||
"default": "https://spec.openapis.org/oas/3.1/dialect/base" | ||
@@ -123,3 +124,4 @@ }, | ||
"url": { | ||
"$ref": "#/$defs/uri" | ||
"type": "string", | ||
"format": "uri" | ||
} | ||
@@ -143,3 +145,4 @@ }, | ||
"url": { | ||
"$ref": "#/$defs/uri" | ||
"type": "string", | ||
"format": "uri-template" | ||
}, | ||
@@ -173,3 +176,3 @@ "description": { | ||
}, | ||
"descriptions": { | ||
"description": { | ||
"type": "string" | ||
@@ -299,2 +302,3 @@ } | ||
"if": { | ||
"type": "object", | ||
"required": ["$ref"] | ||
@@ -375,3 +379,4 @@ }, | ||
"url": { | ||
"$ref": "#/$defs/uri" | ||
"type": "string", | ||
"format": "uri" | ||
} | ||
@@ -469,2 +474,5 @@ }, | ||
"properties": { | ||
"name": { | ||
"pattern": "[^/#?]+$" | ||
}, | ||
"style": { | ||
@@ -494,3 +502,3 @@ "default": "simple", | ||
"default": "simple", | ||
"enum": ["simple"] | ||
"const": "simple" | ||
} | ||
@@ -531,3 +539,3 @@ } | ||
"default": "form", | ||
"enum": ["form"] | ||
"const": "form" | ||
} | ||
@@ -569,2 +577,3 @@ } | ||
"if": { | ||
"type": "object", | ||
"required": ["$ref"] | ||
@@ -599,2 +608,3 @@ }, | ||
"if": { | ||
"type": "object", | ||
"required": ["$ref"] | ||
@@ -710,3 +720,3 @@ }, | ||
"patternProperties": { | ||
"^[1-5][0-9X]{2}$": { | ||
"^[1-5](?:[0-9]{2}|XX)$": { | ||
"$ref": "#/$defs/response-or-reference" | ||
@@ -746,2 +756,3 @@ } | ||
"if": { | ||
"type": "object", | ||
"required": ["$ref"] | ||
@@ -765,2 +776,3 @@ }, | ||
"if": { | ||
"type": "object", | ||
"required": ["$ref"] | ||
@@ -786,3 +798,4 @@ }, | ||
"externalValue": { | ||
"$ref": "#/$defs/uri" | ||
"type": "string", | ||
"format": "uri" | ||
} | ||
@@ -795,2 +808,3 @@ }, | ||
"if": { | ||
"type": "object", | ||
"required": ["$ref"] | ||
@@ -809,3 +823,4 @@ }, | ||
"operationRef": { | ||
"$ref": "#/$defs/uri" | ||
"type": "string", | ||
"format": "uri-reference" | ||
}, | ||
@@ -837,2 +852,3 @@ "operationId": true, | ||
"if": { | ||
"type": "object", | ||
"required": ["$ref"] | ||
@@ -861,7 +877,17 @@ }, | ||
}, | ||
"allowEmptyValue": { | ||
"default": false, | ||
"type": "boolean" | ||
"schema": { | ||
"$ref": "#/$defs/schema" | ||
}, | ||
"content": { | ||
"$ref": "#/$defs/content" | ||
} | ||
}, | ||
"oneOf": [ | ||
{ | ||
"required": ["schema"] | ||
}, | ||
{ | ||
"required": ["content"] | ||
} | ||
], | ||
"dependentSchemas": { | ||
@@ -872,3 +898,3 @@ "schema": { | ||
"default": "simple", | ||
"enum": ["simple"] | ||
"const": "simple" | ||
}, | ||
@@ -878,19 +904,5 @@ "explode": { | ||
"type": "boolean" | ||
}, | ||
"allowReserved": { | ||
"default": false, | ||
"type": "boolean" | ||
}, | ||
"schema": { | ||
"$ref": "#/$defs/schema" | ||
} | ||
}, | ||
"$ref": "#/$defs/examples" | ||
}, | ||
"content": { | ||
"properties": { | ||
"content": { | ||
"$ref": "#/$defs/content" | ||
} | ||
} | ||
} | ||
@@ -903,2 +915,3 @@ }, | ||
"if": { | ||
"type": "object", | ||
"required": ["$ref"] | ||
@@ -934,3 +947,4 @@ }, | ||
"$ref": { | ||
"$ref": "#/$defs/uri" | ||
"type": "string", | ||
"format": "uri-reference" | ||
}, | ||
@@ -1029,3 +1043,4 @@ "summary": { | ||
"scheme": { | ||
"const": "bearer" | ||
"type": "string", | ||
"pattern": "^[Bb][Ee][Aa][Rr][Ee][Rr]$" | ||
} | ||
@@ -1040,4 +1055,3 @@ }, | ||
} | ||
}, | ||
"required": ["scheme"] | ||
} | ||
} | ||
@@ -1075,3 +1089,4 @@ }, | ||
"openIdConnectUrl": { | ||
"$ref": "#/$defs/uri" | ||
"type": "string", | ||
"format": "uri" | ||
} | ||
@@ -1086,2 +1101,3 @@ }, | ||
"if": { | ||
"type": "object", | ||
"required": ["$ref"] | ||
@@ -1199,5 +1215,3 @@ }, | ||
"patternProperties": { | ||
"^x-": { | ||
"type": ["number", "string", "null", "boolean", "array", "object"] | ||
} | ||
"^x-": true | ||
} | ||
@@ -1216,6 +1230,2 @@ }, | ||
}, | ||
"uri": { | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"map-of-strings": { | ||
@@ -1222,0 +1232,0 @@ "type": "object", |
{ | ||
"name": "@stoplight/spectral-rulesets", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"homepage": "https://github.com/stoplightio/spectral", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/stoplightio/spectral/issues", |
Sorry, the diff of this file is not supported yet
432863
10224