Skip to content

Commit 6cae0d0

Browse files
committed
Add UUID (not in URN) format
1 parent f80d1fd commit 6cae0d0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

jsonschema-validation.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<!ENTITY RFC3339 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3339.xml">
99
<!ENTITY RFC3986 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3986.xml">
1010
<!ENTITY RFC3987 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3987.xml">
11+
<!ENTITY RFC4122 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4122.xml">
1112
<!ENTITY RFC4291 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4291.xml">
1213
<!ENTITY RFC4329 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4329.xml">
1314
<!ENTITY RFC4648 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4648.xml">
@@ -676,10 +677,22 @@
676677
Reference (either an IRI or a relative-reference),
677678
according to <xref target="RFC3987"/>.
678679
</t>
680+
<t hangText="uuid:">
681+
A string instance is valid against this attribute if it is a valid
682+
string representation of a UUID, according to <xref target="RFC4122"/>.
683+
</t>
679684
</list>
685+
</t>
686+
<t>
680687
Note that all valid URIs are valid IRIs, and all valid URI References are
681688
also valid IRI References.
682689
</t>
690+
<t>
691+
Note also that the "uuid" format is for plain UUIDs, not UUIDs in URNs. An example
692+
is "f81d4fae-7dec-11d0-a765-00a0c91e6bf6". For UUIDs as URNs, use the "uri" format,
693+
with a "pattern" regular expression of "^urn:uuid:" to indicate the URI scheme and
694+
URN namespace.
695+
</t>
683696
</section>
684697

685698
<section title="uri-template">
@@ -1063,6 +1076,7 @@
10631076
&RFC3339;
10641077
&RFC3986;
10651078
&RFC3987;
1079+
&RFC4122;
10661080
&RFC4291;
10671081
&RFC4648;
10681082
&RFC5322;

0 commit comments

Comments
 (0)