Skip to content

Commit 43316da

Browse files
notes on how each uri-reference should resolve
1 parent 2933fe9 commit 43316da

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/schemas/validation/schema.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@ properties:
1010
pattern: '^3\.2\.\d+(-.+)?$'
1111
$self:
1212
type: string
13+
$comment: resolved against the retrieval uri
1314
format: uri-reference
1415
$comment: MUST NOT contain a fragment
1516
pattern: '^[^#]*$'
1617
info:
1718
$ref: '#/$defs/info'
1819
jsonSchemaDialect:
1920
type: string
21+
$comment: resolved against the resolved version of $self
2022
format: uri-reference
2123
default: 'https://spec.openapis.org/oas/3.2/dialect/WORK-IN-PROGRESS'
2224
servers:
25+
$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)
2326
type: array
2427
items:
2528
$ref: '#/$defs/server'
@@ -68,6 +71,7 @@ $defs:
6871
description:
6972
type: string
7073
termsOfService:
74+
$comment: resolved against the resolved version of $self
7175
type: string
7276
format: uri-reference
7377
contact:
@@ -89,6 +93,7 @@ $defs:
8993
name:
9094
type: string
9195
url:
96+
$comment: resolved against the resolved version of $self
9297
type: string
9398
format: uri-reference
9499
email:
@@ -106,6 +111,7 @@ $defs:
106111
identifier:
107112
type: string
108113
url:
114+
$comment: resolved against the resolved version of $self
109115
type: string
110116
format: uri-reference
111117
required:
@@ -225,6 +231,7 @@ $defs:
225231
type: object
226232
properties:
227233
$ref:
234+
$comment: resolved against the resolved version of $self
228235
type: string
229236
format: uri-reference
230237
summary:
@@ -327,6 +334,7 @@ $defs:
327334
description:
328335
type: string
329336
url:
337+
$comment: resolved against ???
330338
type: string
331339
format: uri-reference
332340
required:
@@ -682,6 +690,7 @@ $defs:
682690
type: string
683691
value: true
684692
externalValue:
693+
$comment: resolved against the resolved version of $self
685694
type: string
686695
format: uri-reference
687696
allOf:
@@ -719,6 +728,7 @@ $defs:
719728
type: object
720729
properties:
721730
operationRef:
731+
$comment: resolved against the resolved version of $self
722732
type: string
723733
format: uri-reference
724734
operationId:
@@ -825,6 +835,7 @@ $defs:
825835
type: object
826836
properties:
827837
$ref:
838+
$comment: resolved against the resolved version of $self
828839
type: string
829840
format: uri-reference
830841
summary:
@@ -929,6 +940,7 @@ $defs:
929940
flows:
930941
$ref: '#/$defs/oauth-flows'
931942
oauth2MetadataUrl:
943+
$comment: resolved against the matching and de-templated server url
932944
type: string
933945
format: uri-reference
934946
required:
@@ -944,6 +956,7 @@ $defs:
944956
then:
945957
properties:
946958
openIdConnectUrl:
959+
$comment: resolved against the matching and de-templated server url
947960
type: string
948961
format: uri-reference
949962
required:
@@ -977,6 +990,7 @@ $defs:
977990

978991
$defs:
979992
implicit:
993+
$comment: references are resolved against the matching and de-templated server url
980994
type: object
981995
properties:
982996
authorizationUrl:
@@ -994,6 +1008,7 @@ $defs:
9941008
unevaluatedProperties: false
9951009

9961010
password:
1011+
$comment: references are resolved against the matching and de-templated server url
9971012
type: object
9981013
properties:
9991014
tokenUrl:
@@ -1011,6 +1026,7 @@ $defs:
10111026
unevaluatedProperties: false
10121027

10131028
client-credentials:
1029+
$comment: references are resolved against the matching and de-templated server url
10141030
type: object
10151031
properties:
10161032
tokenUrl:
@@ -1028,6 +1044,7 @@ $defs:
10281044
unevaluatedProperties: false
10291045

10301046
authorization-code:
1047+
$comment: references are resolved against the matching and de-templated server url
10311048
type: object
10321049
properties:
10331050
authorizationUrl:
@@ -1049,6 +1066,7 @@ $defs:
10491066
unevaluatedProperties: false
10501067

10511068
device-authorization:
1069+
$comment: references are resolved against the matching and de-templated server url
10521070
type: object
10531071
properties:
10541072
deviceAuthorizationUrl:

0 commit comments

Comments
 (0)