File tree Expand file tree Collapse file tree 1 file changed +24
-12
lines changed
openapi_spec_validator/resources/schemas/v3.0 Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Original file line number Diff line number Diff line change 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" ,
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 },
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 }
14891487 "PasswordOAuthFlow" : {
14901488 "type" : " object" ,
14911489 "required" : [
1492- " tokenUrl"
1490+ " tokenUrl" ,
1491+ " scopes"
14931492 ],
14941493 "properties" : {
14951494 "tokenUrl" : {
15161515 "ClientCredentialsFlow" : {
15171516 "type" : " object" ,
15181517 "required" : [
1519- " tokenUrl"
1518+ " tokenUrl" ,
1519+ " scopes"
15201520 ],
15211521 "properties" : {
15221522 "tokenUrl" : {
15441544 "type" : " object" ,
15451545 "required" : [
15461546 " authorizationUrl" ,
1547- " tokenUrl"
1547+ " tokenUrl" ,
1548+ " scopes"
15481549 ],
15491550 "properties" : {
15501551 "authorizationUrl" : {
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" : {
16481656 "default" : false
16491657 }
16501658 },
1659+ "patternProperties" : {
1660+ "^x-" : {
1661+ }
1662+ },
16511663 "additionalProperties" : false
16521664 }
16531665 }
You can’t perform that action at this time.
0 commit comments