File tree 7 files changed +35
-27
lines changed
7 files changed +35
-27
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "id" : " https://spec.openapis.org/oas/3.0/schema/2019-04-02 " ,
2
+ "id" : " https://spec.openapis.org/oas/3.0/schema/2021-09-28 " ,
3
3
"$schema" : " http://json-schema.org/draft-04/schema#" ,
4
4
"description" : " Validation schema for OpenAPI Specification 3.0.X." ,
5
5
"type" : " object" ,
1358
1358
"description" : " Bearer" ,
1359
1359
"properties" : {
1360
1360
"scheme" : {
1361
- "enum" : [
1362
- " bearer"
1363
- ]
1361
+ "type" : " string" ,
1362
+ "pattern" : " ^[Bb][Ee][Aa][Rr][Ee][Rr]$"
1364
1363
}
1365
1364
}
1366
1365
},
1374
1373
"properties" : {
1375
1374
"scheme" : {
1376
1375
"not" : {
1377
- "enum" : [
1378
- " bearer"
1379
- ]
1376
+ "type" : " string" ,
1377
+ "pattern" : " ^[Bb][Ee][Aa][Rr][Ee][Rr]$"
1380
1378
}
1381
1379
}
1382
1380
}
1489
1487
"PasswordOAuthFlow" : {
1490
1488
"type" : " object" ,
1491
1489
"required" : [
1492
- " tokenUrl"
1490
+ " tokenUrl" ,
1491
+ " scopes"
1493
1492
],
1494
1493
"properties" : {
1495
1494
"tokenUrl" : {
1516
1515
"ClientCredentialsFlow" : {
1517
1516
"type" : " object" ,
1518
1517
"required" : [
1519
- " tokenUrl"
1518
+ " tokenUrl" ,
1519
+ " scopes"
1520
1520
],
1521
1521
"properties" : {
1522
1522
"tokenUrl" : {
1544
1544
"type" : " object" ,
1545
1545
"required" : [
1546
1546
" authorizationUrl" ,
1547
- " tokenUrl"
1547
+ " tokenUrl" ,
1548
+ " scopes"
1548
1549
],
1549
1550
"properties" : {
1550
1551
"authorizationUrl" : {
1628
1629
"headers" : {
1629
1630
"type" : " object" ,
1630
1631
"additionalProperties" : {
1631
- "$ref" : " #/definitions/Header"
1632
+ "oneOf" : [
1633
+ {
1634
+ "$ref" : " #/definitions/Header"
1635
+ },
1636
+ {
1637
+ "$ref" : " #/definitions/Reference"
1638
+ }
1639
+ ]
1632
1640
}
1633
1641
},
1634
1642
"style" : {
1651
1659
"additionalProperties" : false
1652
1660
}
1653
1661
}
1654
- }
1662
+ }
Original file line number Diff line number Diff line change 1
- id : https://spec.openapis.org/oas/3.0/schema/2021-08-12
1
+ id : https://spec.openapis.org/oas/3.0/schema/2021-09-28
2
2
$schema : http://json-schema.org/draft-04/schema#
3
3
description : Validation schema for OpenAPI Specification 3.0.X.
4
4
type : object
Original file line number Diff line number Diff line change 1
1
{
2
- "$id" : " https://spec.openapis.org/oas/3.1/schema-base/2021-05-20 " ,
2
+ "$id" : " https://spec.openapis.org/oas/3.1/schema-base/2021-09-28 " ,
3
3
"$schema" : " https://json-schema.org/draft/2020-12/schema" ,
4
- "$ref" : " https://spec.openapis.org/oas/3.1/schema/2021-05-20 " ,
4
+ "$ref" : " https://spec.openapis.org/oas/3.1/schema/2021-09-28 " ,
5
5
"properties" : {
6
6
"jsonSchemaDialect" : {
7
7
"$ref" : " #/$defs/dialect"
21
21
}
22
22
}
23
23
}
24
- }
24
+ }
Original file line number Diff line number Diff line change 1
- $id : ' https://spec.openapis.org/oas/3.1/schema-base/2021-05-20 '
1
+ $id : ' https://spec.openapis.org/oas/3.1/schema-base/2021-09-28 '
2
2
$schema : ' https://json-schema.org/draft/2020-12/schema'
3
3
4
- $ref : ' https://spec.openapis.org/oas/3.1/schema/2021-05-20 '
4
+ $ref : ' https://spec.openapis.org/oas/3.1/schema/2021-09-28 '
5
5
properties :
6
6
jsonSchemaDialect :
7
7
$ref : ' #/$defs/dialect'
Original file line number Diff line number Diff line change 1
1
{
2
- "$id" : " https://spec.openapis.org/oas/3.1/schema/2021-05-20 " ,
2
+ "$id" : " https://spec.openapis.org/oas/3.1/schema/2021-09-28 " ,
3
3
"$schema" : " https://json-schema.org/draft/2020-12/schema" ,
4
4
"type" : " object" ,
5
5
"properties" : {
622
622
},
623
623
"parameter-or-reference" : {
624
624
"if" : {
625
+ "type" : " object" ,
625
626
"required" : [
626
627
" $ref"
627
628
]
865
866
},
866
867
"example-or-reference" : {
867
868
"if" : {
869
+ "type" : " object" ,
868
870
"required" : [
869
871
" $ref"
870
872
]
1131
1133
"const" : " http"
1132
1134
},
1133
1135
"scheme" : {
1134
- "const" : " bearer"
1136
+ "type" : " string" ,
1137
+ "pattern" : " ^[Bb][Ee][Aa][Rr][Ee][Rr]$"
1135
1138
}
1136
1139
},
1137
1140
"required" : [
1144
1147
"bearerFormat" : {
1145
1148
"type" : " string"
1146
1149
}
1147
- },
1148
- "required" : [
1149
- " scheme"
1150
- ]
1150
+ }
1151
1151
}
1152
1152
},
1153
1153
"type-oauth2" : {
1348
1348
}
1349
1349
}
1350
1350
}
1351
- }
1351
+ }
Original file line number Diff line number Diff line change 1
- $id : ' https://spec.openapis.org/oas/3.1/schema/2021-05-20 '
1
+ $id : ' https://spec.openapis.org/oas/3.1/schema/2021-09-28 '
2
2
$schema : ' https://json-schema.org/draft/2020-12/schema'
3
3
4
4
type : object
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ before(async () => {
14
14
JsonSchema . add ( dialect ) ;
15
15
JsonSchema . add ( vocabulary ) ;
16
16
JsonSchema . add ( yaml . parse ( fs . readFileSync ( `${ __dirname } /../../schemas/v3.1/schema.yaml` , "utf8" ) , { prettyErrors : true } ) ) ;
17
- metaSchema = await JsonSchema . get ( "https://spec.openapis.org/oas/3.1/schema/2021-05-20 " ) ;
17
+ metaSchema = await JsonSchema . get ( "https://spec.openapis.org/oas/3.1/schema/2021-09-28 " ) ;
18
18
} ) ;
19
19
20
20
describe ( "v3.1 Pass" , ( ) => {
You can’t perform that action at this time.
0 commit comments