Skip to content

Commit 13a4fd2

Browse files
committed
Fix usage of "not"
Constructs such as: type: object not: type: object will always fail, so remove the type inside the not. The "not" usage around "^x-" patterns for responses is unnecessary, as the existing patternProperties: "[1-5]..." additionalProperties: false prevents all property that do not start with 1, 2, 3, 4, or 5 from being allowed already.
1 parent 1087db4 commit 13a4fd2

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

schemas/v3.0/schema.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -666,14 +666,8 @@ definitions:
666666
oneOf:
667667
- $ref: '#/definitions/Response'
668668
- $ref: '#/definitions/Reference'
669-
'^x-': {}
670669
minProperties: 1
671670
additionalProperties: false
672-
not:
673-
type: object
674-
patternProperties:
675-
'^x-': {}
676-
additionalProperties: false
677671

678672

679673
SecurityRequirement:
@@ -1250,20 +1244,16 @@ definitions:
12501244
- $ref: '#/definitions/BearerHTTPSecurityScheme'
12511245

12521246
NonBearerHTTPSecurityScheme:
1253-
not:
1254-
type: object
1255-
properties:
1256-
scheme:
1257-
type: string
1258-
enum:
1259-
- bearer
12601247
type: object
12611248
required:
12621249
- scheme
12631250
- type
12641251
properties:
12651252
scheme:
12661253
type: string
1254+
not:
1255+
enum:
1256+
- bearer
12671257
description:
12681258
type: string
12691259
type:

0 commit comments

Comments
 (0)