Skip to content

Commit f8a6a29

Browse files
committed
Fix $anchor plain name format to match XML's NCName production
This uses the US-ASCII part of the production. See: https://www.w3.org/TR/2006/REC-xml-names11-20060816/#NT-NCName
1 parent 39e3969 commit f8a6a29

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jsonschema-core.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,9 +1391,11 @@
13911391
identifier keyword that can only be used to create plain name fragments.
13921392
</t>
13931393
<t>
1394-
If present, the value of this keyword MUST be a string, which MUST start with
1395-
a letter ([A-Za-z]), followed by any number of letters, digits ([0-9]),
1396-
hyphens ("-"), underscores ("_"), colons (":"), or periods (".").
1394+
If present, the value of this keyword MUST be a string and MUST start with
1395+
a letter ([A-Za-z]) or underscore ("_"), followed by any number of letters,
1396+
digits ([0-9]), hyphens ("-"), underscores ("_"), and periods (".").
1397+
This matches the US-ASCII part of XML's NCName production at
1398+
<eref target="https://www.w3.org/TR/2006/REC-xml-names11-20060816/#NT-NCName"/>.
13971399
<cref>
13981400
Note that the anchor string does not include the "#" character,
13991401
as it is not a URI-reference. An "$anchor": "foo" becomes the

0 commit comments

Comments
 (0)