Skip to content

Commit 14753e6

Browse files
Disallow fragments in some uri-references
This should also apply to $self, when it is added.
1 parent 9fd4e2e commit 14753e6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

schemas/v3.1/schema.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ properties:
1111
info:
1212
$ref: '#/$defs/info'
1313
jsonSchemaDialect:
14-
type: string
15-
format: uri-reference
14+
$ref: '#/$defs/uri-reference-no-fragment'
1615
default: 'https://spec.openapis.org/oas/3.1/dialect/WORK-IN-PROGRESS'
1716
servers:
1817
type: array
@@ -972,3 +971,9 @@ $defs:
972971
properties:
973972
explode:
974973
default: false
974+
975+
uri-reference-no-fragment:
976+
$comment: a uri-reference used to reference an entire document, not a position in an OpenAPI description
977+
type: string
978+
format: uri-reference
979+
regex: '^[^#]*$'

0 commit comments

Comments
 (0)