Skip to content
65 changes: 30 additions & 35 deletions schemas/v3.0/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ properties:
type: array
items:
$ref: '#/definitions/Tag'
uniqueItems: true
paths:
$ref: '#/definitions/Paths'
components:
Expand All @@ -35,10 +36,10 @@ definitions:
type: object
required:
- $ref
properties:
$ref:
patternProperties:
'^\$ref$':
type: string
format: uriref
format: uri-reference
Info:
type: object
required:
Expand All @@ -51,7 +52,7 @@ definitions:
type: string
termsOfService:
type: string
format: uriref
format: uri-reference
contact:
$ref: '#/definitions/Contact'
license:
Expand All @@ -70,7 +71,7 @@ definitions:
type: string
url:
type: string
format: uriref
format: uri-reference
email:
type: string
format: email
Expand All @@ -87,7 +88,7 @@ definitions:
type: string
url:
type: string
format: uriref
format: uri-reference
patternProperties:
'^x-': {}
additionalProperties: false
Expand Down Expand Up @@ -252,7 +253,7 @@ definitions:
type: array
items: {}
minItems: 1
uniqueItems: true
uniqueItems: false
type:
type: string
enum:
Expand Down Expand Up @@ -347,7 +348,7 @@ definitions:
type: string
namespace:
type: string
format: url
format: uri
prefix:
type: string
attribute:
Expand All @@ -368,6 +369,7 @@ definitions:
description:
type: string
headers:
type: object
additionalProperties:
oneOf:
- $ref: '#/definitions/Header'
Expand Down Expand Up @@ -440,7 +442,7 @@ definitions:
value: {}
externalValue:
type: string
format: uriref
format: uri-reference
patternProperties:
'^x-': {}
additionalProperties: false
Expand Down Expand Up @@ -600,6 +602,7 @@ definitions:
oneOf:
- $ref: '#/definitions/Parameter'
- $ref: '#/definitions/Reference'
uniqueItems: true
patternProperties:
'^x-': {}
additionalProperties: false
Expand Down Expand Up @@ -627,6 +630,7 @@ definitions:
oneOf:
- $ref: '#/definitions/Parameter'
- $ref: '#/definitions/Reference'
uniqueItems: true
requestBody:
oneOf:
- $ref: '#/definitions/RequestBody'
Expand Down Expand Up @@ -662,18 +666,13 @@ definitions:
- $ref: '#/definitions/Response'
- $ref: '#/definitions/Reference'
patternProperties:
'[1-5](?:\d{2}|XX)':
'^[1-5](?:\d{2}|XX)$':
oneOf:
- $ref: '#/definitions/Response'
- $ref: '#/definitions/Reference'
'^x-': {}
minProperties: 1
additionalProperties: false
not:
type: object
patternProperties:
'^x-': {}
additionalProperties: false


SecurityRequirement:
Expand Down Expand Up @@ -707,7 +706,7 @@ definitions:
type: string
url:
type: string
format: uriref
format: uri-reference
patternProperties:
'^x-': {}
additionalProperties: false
Expand Down Expand Up @@ -1250,20 +1249,16 @@ definitions:
- $ref: '#/definitions/BearerHTTPSecurityScheme'

NonBearerHTTPSecurityScheme:
not:
type: object
properties:
scheme:
type: string
enum:
- bearer
type: object
required:
- scheme
- type
properties:
scheme:
type: string
not:
enum:
- bearer
description:
type: string
type:
Expand Down Expand Up @@ -1326,7 +1321,7 @@ definitions:
- openIdConnect
openIdConnectUrl:
type: string
format: url
format: uri-reference
description:
type: string
patternProperties:
Expand Down Expand Up @@ -1356,10 +1351,10 @@ definitions:
properties:
authorizationUrl:
type: string
format: uriref
format: uri-reference
refreshUrl:
type: string
format: uriref
format: uri-reference
scopes:
type: object
additionalProperties:
Expand All @@ -1375,10 +1370,10 @@ definitions:
properties:
tokenUrl:
type: string
format: uriref
format: uri-reference
refreshUrl:
type: string
format: uriref
format: uri-reference
scopes:
type: object
additionalProperties:
Expand All @@ -1394,10 +1389,10 @@ definitions:
properties:
tokenUrl:
type: string
format: uriref
format: uri-reference
refreshUrl:
type: string
format: uriref
format: uri-reference
scopes:
type: object
additionalProperties:
Expand All @@ -1414,13 +1409,13 @@ definitions:
properties:
authorizationUrl:
type: string
format: uriref
format: uri-reference
tokenUrl:
type: string
format: uriref
format: uri-reference
refreshUrl:
type: string
format: uriref
format: uri-reference
scopes:
type: object
additionalProperties:
Expand All @@ -1439,7 +1434,7 @@ definitions:
properties:
operationRef:
type: string
format: uriref
format: uri-reference
parameters:
type: object
additionalProperties: {}
Expand Down Expand Up @@ -1497,4 +1492,4 @@ definitions:
allowReserved:
type: boolean
default: false
additionalProperties: false
additionalProperties: false