Skip to content

Commit 355ff25

Browse files
committed
openapi 3.0 schema update
1 parent e59206e commit 355ff25

File tree

1 file changed

+24
-12
lines changed
  • openapi_spec_validator/resources/schemas/v3.0

1 file changed

+24
-12
lines changed

openapi_spec_validator/resources/schemas/v3.0/schema.json

+24-12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"title": "A JSON Schema for OpenAPI 3.0.X.",
2+
"id": "https://spec.openapis.org/oas/3.0/schema/2021-09-28",
33
"$schema": "http://json-schema.org/draft-04/schema#",
4-
"description": "Validation schema for OpenAPI Specification 3.0.X.",
4+
"description": "The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3",
55
"type": "object",
66
"required": [
77
"openapi",
@@ -1358,9 +1358,8 @@
13581358
"description": "Bearer",
13591359
"properties": {
13601360
"scheme": {
1361-
"enum": [
1362-
"bearer"
1363-
]
1361+
"type": "string",
1362+
"pattern": "^[Bb][Ee][Aa][Rr][Ee][Rr]$"
13641363
}
13651364
}
13661365
},
@@ -1374,9 +1373,8 @@
13741373
"properties": {
13751374
"scheme": {
13761375
"not": {
1377-
"enum": [
1378-
"bearer"
1379-
]
1376+
"type": "string",
1377+
"pattern": "^[Bb][Ee][Aa][Rr][Ee][Rr]$"
13801378
}
13811379
}
13821380
}
@@ -1489,7 +1487,8 @@
14891487
"PasswordOAuthFlow": {
14901488
"type": "object",
14911489
"required": [
1492-
"tokenUrl"
1490+
"tokenUrl",
1491+
"scopes"
14931492
],
14941493
"properties": {
14951494
"tokenUrl": {
@@ -1516,7 +1515,8 @@
15161515
"ClientCredentialsFlow": {
15171516
"type": "object",
15181517
"required": [
1519-
"tokenUrl"
1518+
"tokenUrl",
1519+
"scopes"
15201520
],
15211521
"properties": {
15221522
"tokenUrl": {
@@ -1544,7 +1544,8 @@
15441544
"type": "object",
15451545
"required": [
15461546
"authorizationUrl",
1547-
"tokenUrl"
1547+
"tokenUrl",
1548+
"scopes"
15481549
],
15491550
"properties": {
15501551
"authorizationUrl": {
@@ -1628,7 +1629,14 @@
16281629
"headers": {
16291630
"type": "object",
16301631
"additionalProperties": {
1631-
"$ref": "#/definitions/Header"
1632+
"oneOf": [
1633+
{
1634+
"$ref": "#/definitions/Header"
1635+
},
1636+
{
1637+
"$ref": "#/definitions/Reference"
1638+
}
1639+
]
16321640
}
16331641
},
16341642
"style": {
@@ -1648,6 +1656,10 @@
16481656
"default": false
16491657
}
16501658
},
1659+
"patternProperties": {
1660+
"^x-": {
1661+
}
1662+
},
16511663
"additionalProperties": false
16521664
}
16531665
}

0 commit comments

Comments
 (0)