Skip to content

Commit 2232f5b

Browse files
authored
Merge pull request #916 from ssilverman/shawn/anchor-format
Fix $anchor plain name format to match XML's NCName production
2 parents 8f53864 + fab4f8c commit 2232f5b

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

jsonschema-core.xml

Lines changed: 35 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
1398+
<xref target="xml-names">NCName production</xref>.
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
@@ -3250,6 +3252,36 @@ https://example.com/schemas/common#/$defs/count/minimum
32503252
</front>
32513253
<seriesInfo name="Internet-Draft" value="draft-handrews-json-schema-hyperschema-02" />
32523254
</reference>
3255+
<reference anchor="xml-names" target="http://www.w3.org/TR/2006/REC-xml-names11-20060816">
3256+
<front>
3257+
<title>Namespaces in XML 1.1 (Second Edition)</title>
3258+
<author fullname="Tim Bray" role="editor">
3259+
<organization>Textuality</organization>
3260+
<address>
3261+
<email>[email protected]</email>
3262+
</address>
3263+
</author>
3264+
<author fullname="Dave Hollander" role="editor">
3265+
<organization>Contivo, Inc.</organization>
3266+
<address>
3267+
<email>[email protected]</email>
3268+
</address>
3269+
</author>
3270+
<author fullname="Andrew Layman" role="editor">
3271+
<organization>Microsoft</organization>
3272+
<address>
3273+
<email>[email protected]</email>
3274+
</address>
3275+
</author>
3276+
<author fullname="Richard Tobin" role="editor">
3277+
<organization>University of Edinburgh and Markup Technology Ltd</organization>
3278+
<address>
3279+
<email>[email protected]</email>
3280+
</address>
3281+
</author>
3282+
<date month="August" year="2006"/>
3283+
</front>
3284+
</reference>
32533285
</references>
32543286

32553287
<section title="Schema identification examples" anchor="idExamples">

0 commit comments

Comments
 (0)