Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/schemas/validation/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ properties:
pattern: '^3\.2\.\d+(-.+)?$'
$self:
type: string
$comment: resolved against the retrieval uri
format: uri-reference
$comment: MUST NOT contain a fragment
pattern: '^[^#]*$'
info:
$ref: '#/$defs/info'
jsonSchemaDialect:
type: string
$comment: resolved against the resolved version of $self
format: uri-reference
default: 'https://spec.openapis.org/oas/3.2/dialect/WORK-IN-PROGRESS'
servers:
$comment: server urls are resolved against the HTTP request uri itself (template matching ideally happens first, because of url encoding, but matching the template parts separately may produce ambiguous results, so in my implementation I concatenate the server url template with the path template and then match that against the entire uri)
type: array
items:
$ref: '#/$defs/server'
Expand Down Expand Up @@ -68,6 +71,7 @@ $defs:
description:
type: string
termsOfService:
$comment: resolved against the resolved version of $self
type: string
format: uri-reference
contact:
Expand All @@ -89,6 +93,7 @@ $defs:
name:
type: string
url:
$comment: resolved against the resolved version of $self
type: string
format: uri-reference
email:
Expand All @@ -106,6 +111,7 @@ $defs:
identifier:
type: string
url:
$comment: resolved against the resolved version of $self
type: string
format: uri-reference
required:
Expand Down Expand Up @@ -225,6 +231,7 @@ $defs:
type: object
properties:
$ref:
$comment: resolved against the resolved version of $self
type: string
format: uri-reference
summary:
Expand Down Expand Up @@ -327,6 +334,7 @@ $defs:
description:
type: string
url:
$comment: resolved against ???
type: string
format: uri-reference
required:
Expand Down Expand Up @@ -682,6 +690,7 @@ $defs:
type: string
value: true
externalValue:
$comment: resolved against the resolved version of $self
type: string
format: uri-reference
allOf:
Expand Down Expand Up @@ -719,6 +728,7 @@ $defs:
type: object
properties:
operationRef:
$comment: resolved against the resolved version of $self
type: string
format: uri-reference
operationId:
Expand Down Expand Up @@ -825,6 +835,7 @@ $defs:
type: object
properties:
$ref:
$comment: resolved against the resolved version of $self
type: string
format: uri-reference
summary:
Expand Down Expand Up @@ -929,6 +940,7 @@ $defs:
flows:
$ref: '#/$defs/oauth-flows'
oauth2MetadataUrl:
$comment: resolved against the matching and de-templated server url
type: string
format: uri-reference
required:
Expand All @@ -944,6 +956,7 @@ $defs:
then:
properties:
openIdConnectUrl:
$comment: resolved against the matching and de-templated server url
type: string
format: uri-reference
required:
Expand Down Expand Up @@ -977,6 +990,7 @@ $defs:

$defs:
implicit:
$comment: references are resolved against the matching and de-templated server url
type: object
properties:
authorizationUrl:
Expand All @@ -994,6 +1008,7 @@ $defs:
unevaluatedProperties: false

password:
$comment: references are resolved against the matching and de-templated server url
type: object
properties:
tokenUrl:
Expand All @@ -1011,6 +1026,7 @@ $defs:
unevaluatedProperties: false

client-credentials:
$comment: references are resolved against the matching and de-templated server url
type: object
properties:
tokenUrl:
Expand All @@ -1028,6 +1044,7 @@ $defs:
unevaluatedProperties: false

authorization-code:
$comment: references are resolved against the matching and de-templated server url
type: object
properties:
authorizationUrl:
Expand All @@ -1049,6 +1066,7 @@ $defs:
unevaluatedProperties: false

device-authorization:
$comment: references are resolved against the matching and de-templated server url
type: object
properties:
deviceAuthorizationUrl:
Expand Down
Loading