@@ -979,8 +979,7 @@ $defs:
979
979
description : Inline configuration of the OAuth2 authentication policy.
980
980
properties :
981
981
authority :
982
- type : string
983
- format : uri-template
982
+ $ref : ' #/$defs/uriTemplate'
984
983
title : OAuth2AutenthicationDataAuthority
985
984
description : The URI that references the OAuth2 authority to use.
986
985
grant :
@@ -1114,11 +1113,10 @@ $defs:
1114
1113
description : A URI reference that identifies the error type.
1115
1114
oneOf :
1116
1115
- title : LiteralErrorType
1116
+ $ref : ' #/$defs/uriTemplate'
1117
1117
description : The literal error type.
1118
- type : string
1119
- format : uri-template
1120
- - $ref : ' #/$defs/runtimeExpression'
1121
- title : ExpressionErrorType
1118
+ - title : ExpressionErrorType
1119
+ $ref : ' #/$defs/runtimeExpression'
1122
1120
description : An expression based error type.
1123
1121
status :
1124
1122
type : integer
@@ -1144,14 +1142,23 @@ $defs:
1144
1142
title : ErrorDetails
1145
1143
description : A human-readable explanation specific to this occurrence of the error.
1146
1144
required : [ type, status ]
1145
+ uriTemplate :
1146
+ title : UriTemplate
1147
+ anyOf :
1148
+ - title : LiteralUriTemplate
1149
+ type : string
1150
+ format : uri-template
1151
+ pattern : " ^[A-Za-z][A-Za-z0-9+\\ -.]*://.*"
1152
+ - title : LiteralUri
1153
+ type : string
1154
+ format : uri
1155
+ pattern : " ^[A-Za-z][A-Za-z0-9+\\ -.]*://.*"
1147
1156
endpoint :
1148
1157
title : Endpoint
1149
1158
description : Represents an endpoint.
1150
1159
oneOf :
1151
1160
- $ref : ' #/$defs/runtimeExpression'
1152
- - title : LiteralEndpoint
1153
- type : string
1154
- format : uri-template
1161
+ - $ref : ' #/$defs/uriTemplate'
1155
1162
- title : EndpointConfiguration
1156
1163
type : object
1157
1164
unevaluatedProperties : false
@@ -1162,10 +1169,9 @@ $defs:
1162
1169
oneOf :
1163
1170
- title : LiteralEndpointURI
1164
1171
description : The literal endpoint's URI.
1165
- type : string
1166
- format : uri-template
1167
- - $ref : ' #/$defs/runtimeExpression'
1168
- title : ExpressionEndpointURI
1172
+ $ref : ' #/$defs/uriTemplate'
1173
+ - title : ExpressionEndpointURI
1174
+ $ref : ' #/$defs/runtimeExpression'
1169
1175
description : An expression based endpoint's URI.
1170
1176
authentication :
1171
1177
$ref : ' #/$defs/referenceableAuthenticationPolicy'
@@ -1185,9 +1191,7 @@ $defs:
1185
1191
title : EventSource
1186
1192
description : Identifies the context in which an event happened.
1187
1193
oneOf :
1188
- - title : LiteralSource
1189
- type : string
1190
- format : uri-template
1194
+ - $ref : ' #/$defs/uriTemplate'
1191
1195
- $ref : ' #/$defs/runtimeExpression'
1192
1196
type :
1193
1197
type : string
@@ -1214,11 +1218,10 @@ $defs:
1214
1218
description : The schema describing the event format.
1215
1219
oneOf :
1216
1220
- title : LiteralDataSchema
1221
+ $ref : ' #/$defs/uriTemplate'
1217
1222
description : The literal event data schema.
1218
- type : string
1219
- format : uri-template
1220
- - $ref : ' #/$defs/runtimeExpression'
1221
- title : ExpressionDataSchema
1223
+ - title : ExpressionDataSchema
1224
+ $ref : ' #/$defs/runtimeExpression'
1222
1225
description : An expression based event data schema.
1223
1226
additionalProperties : true
1224
1227
eventConsumptionStrategy :
0 commit comments