@@ -979,8 +979,7 @@ $defs:
979979 description : Inline configuration of the OAuth2 authentication policy.
980980 properties :
981981 authority :
982- type : string
983- format : uri-template
982+ $ref : ' #/$defs/uriTemplate'
984983 title : OAuth2AutenthicationDataAuthority
985984 description : The URI that references the OAuth2 authority to use.
986985 grant :
@@ -1114,11 +1113,10 @@ $defs:
11141113 description : A URI reference that identifies the error type.
11151114 oneOf :
11161115 - title : LiteralErrorType
1116+ $ref : ' #/$defs/uriTemplate'
11171117 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'
11221120 description : An expression based error type.
11231121 status :
11241122 type : integer
@@ -1144,14 +1142,23 @@ $defs:
11441142 title : ErrorDetails
11451143 description : A human-readable explanation specific to this occurrence of the error.
11461144 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+\\ -.]*://.*"
11471156 endpoint :
11481157 title : Endpoint
11491158 description : Represents an endpoint.
11501159 oneOf :
11511160 - $ref : ' #/$defs/runtimeExpression'
1152- - title : LiteralEndpoint
1153- type : string
1154- format : uri-template
1161+ - $ref : ' #/$defs/uriTemplate'
11551162 - title : EndpointConfiguration
11561163 type : object
11571164 unevaluatedProperties : false
@@ -1162,10 +1169,9 @@ $defs:
11621169 oneOf :
11631170 - title : LiteralEndpointURI
11641171 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'
11691175 description : An expression based endpoint's URI.
11701176 authentication :
11711177 $ref : ' #/$defs/referenceableAuthenticationPolicy'
@@ -1185,9 +1191,7 @@ $defs:
11851191 title : EventSource
11861192 description : Identifies the context in which an event happened.
11871193 oneOf :
1188- - title : LiteralSource
1189- type : string
1190- format : uri-template
1194+ - $ref : ' #/$defs/uriTemplate'
11911195 - $ref : ' #/$defs/runtimeExpression'
11921196 type :
11931197 type : string
@@ -1214,11 +1218,10 @@ $defs:
12141218 description : The schema describing the event format.
12151219 oneOf :
12161220 - title : LiteralDataSchema
1221+ $ref : ' #/$defs/uriTemplate'
12171222 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'
12221225 description : An expression based event data schema.
12231226 additionalProperties : true
12241227 eventConsumptionStrategy :
0 commit comments