Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial batch of minor schema fixes #1744

Merged
merged 10 commits into from Dec 4, 2018
58 changes: 24 additions & 34 deletions schemas/v3.0/schema.yaml
Expand Up @@ -35,10 +35,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 +51,7 @@ definitions:
type: string
termsOfService:
type: string
format: uriref
format: uri-reference
contact:
$ref: '#/definitions/Contact'
license:
Expand All @@ -70,7 +70,7 @@ definitions:
type: string
url:
type: string
format: uriref
format: uri-reference
email:
type: string
format: email
Expand All @@ -87,7 +87,7 @@ definitions:
type: string
url:
type: string
format: uriref
format: uri-reference
patternProperties:
'^x-': {}
additionalProperties: false
Expand Down Expand Up @@ -347,7 +347,7 @@ definitions:
type: string
namespace:
type: string
format: url
format: uri-reference
MikeRalphson marked this conversation as resolved.
Show resolved Hide resolved
prefix:
type: string
attribute:
Expand Down Expand Up @@ -440,7 +440,7 @@ definitions:
value: {}
externalValue:
type: string
format: uriref
format: uri-reference
patternProperties:
'^x-': {}
additionalProperties: false
Expand Down Expand Up @@ -666,14 +666,8 @@ definitions:
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 +701,7 @@ definitions:
type: string
url:
type: string
format: uriref
format: uri-reference
patternProperties:
'^x-': {}
additionalProperties: false
Expand Down Expand Up @@ -1250,20 +1244,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 +1316,7 @@ definitions:
- openIdConnect
openIdConnectUrl:
type: string
format: url
format: uri-reference
description:
type: string
patternProperties:
Expand Down Expand Up @@ -1356,10 +1346,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 +1365,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 +1384,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 +1404,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 +1429,7 @@ definitions:
properties:
operationRef:
type: string
format: uriref
format: uri-reference
parameters:
type: object
additionalProperties: {}
Expand Down Expand Up @@ -1497,4 +1487,4 @@ definitions:
allowReserved:
type: boolean
default: false
additionalProperties: false
additionalProperties: false