1
1
---
2
- id : https://spec.openapis.org/oas/3.0/schema/2019-04-02
3
- " $schema " : http://json-schema.org/draft-04/schema#
2
+ id : https://spec.openapis.org/oas/3.0/schema/2021-08-12
3
+ $schema : http://json-schema.org/draft-04/schema#
4
4
description : Validation schema for OpenAPI Specification 3.0.X.
5
5
type : object
6
6
required :
@@ -27,9 +27,9 @@ properties:
27
27
type : array
28
28
items :
29
29
$ref : " #/definitions/Tag"
30
- # ## disabled, see
31
- # ## test/unit/plugins/json-schema-validator/test-documents/tag-object-uniqueness.yaml
32
- # uniqueItems: true
30
+ # ## disabled, see
31
+ # ## test/unit/plugins/json-schema-validator/test-documents/tag-object-uniqueness.yaml
32
+ # uniqueItems: true
33
33
paths :
34
34
$ref : " #/definitions/Paths"
35
35
components :
@@ -284,7 +284,7 @@ definitions:
284
284
type : string
285
285
minItems : 1
286
286
uniqueItems : true
287
- errorMessage :
287
+ errorMessage :
288
288
type : " should be an array of property names required within an object schema"
289
289
enum :
290
290
type : array
@@ -364,11 +364,11 @@ definitions:
364
364
required : [$ref]
365
365
then :
366
366
$ref : " #/definitions/Reference"
367
- - if :
367
+ - if :
368
368
type : object
369
369
then :
370
370
$ref : " #/definitions/Schema"
371
- - then :
371
+ - then :
372
372
type : boolean
373
373
errorMessage : " should be a Reference Object, Schema Object, or boolean value"
374
374
description :
@@ -675,7 +675,7 @@ definitions:
675
675
$ref : " #/definitions/Response"
676
676
patternProperties :
677
677
" ^[1-5](?:\\d{2}|XX)$ " :
678
- switch :
678
+ switch :
679
679
- if :
680
680
required : [$ref]
681
681
then :
@@ -739,7 +739,7 @@ definitions:
739
739
description : Schema and content are mutually exclusive, at least one is required
740
740
switch :
741
741
- if :
742
- # fails mutual exclusion of `schema` and `content`
742
+ # fails mutual exclusion of `schema` and `content`
743
743
required :
744
744
- schema
745
745
- content
@@ -1070,7 +1070,8 @@ definitions:
1070
1070
PasswordOAuthFlow :
1071
1071
type : object
1072
1072
required :
1073
- - tokenUrl
1073
+ - tokenUrl
1074
+ - scopes
1074
1075
properties :
1075
1076
tokenUrl :
1076
1077
type : string
@@ -1088,7 +1089,8 @@ definitions:
1088
1089
ClientCredentialsFlow :
1089
1090
type : object
1090
1091
required :
1091
- - tokenUrl
1092
+ - tokenUrl
1093
+ - scopes
1092
1094
properties :
1093
1095
tokenUrl :
1094
1096
type : string
@@ -1106,8 +1108,9 @@ definitions:
1106
1108
AuthorizationCodeOAuthFlow :
1107
1109
type : object
1108
1110
required :
1109
- - authorizationUrl
1110
- - tokenUrl
1111
+ - authorizationUrl
1112
+ - tokenUrl
1113
+ - scopes
1111
1114
properties :
1112
1115
authorizationUrl :
1113
1116
type : string
@@ -1163,7 +1166,13 @@ definitions:
1163
1166
headers :
1164
1167
type : object
1165
1168
additionalProperties :
1166
- $ref : " #/definitions/Header"
1169
+ switch :
1170
+ - if :
1171
+ required : [$ref]
1172
+ then :
1173
+ $ref : " #/definitions/Reference"
1174
+ - then :
1175
+ $ref : " #/definitions/Header"
1167
1176
style :
1168
1177
type : string
1169
1178
enum :
0 commit comments