Skip to content

Commit f53b9ca

Browse files
committed
Fix ambiguous regexes
1 parent 34793ee commit f53b9ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

schemas/v2.0/schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@
171171
"example": {
172172
"type": "object",
173173
"patternProperties": {
174-
"^[a-z0-9-]+/[a-z0-9-+]+$": {}
174+
"^[a-z0-9-]+/[a-z0-9\\-+]+$": {}
175175
},
176176
"additionalProperties": false
177177
},
178178
"mimeType": {
179179
"type": "string",
180-
"pattern": "^[\\sa-z0-9-+;\\.=\\/]+$",
180+
"pattern": "^[\\sa-z0-9\\-+;\\.=\\/]+$",
181181
"description": "The MIME type of the HTTP message."
182182
},
183183
"operation": {
@@ -488,7 +488,7 @@
488488
"enum": { "$ref": "http://json-schema.org/draft-04/schema#/properties/enum" },
489489
"type": { "$ref": "http://json-schema.org/draft-04/schema#/properties/type" },
490490
"example": {
491-
491+
492492
},
493493
"allOf": {
494494
"type": "array",

0 commit comments

Comments
 (0)