Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cfdaefe

Browse files
committedFeb 23, 2019
Add UUID (not in URN) format
1 parent fbc52ef commit cfdaefe

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">
@@ -682,10 +683,22 @@
682683
Reference (either an IRI or a relative-reference),
683684
according to <xref target="RFC3987"/>.
684685
</t>
686+
<t hangText="uuid:">
687+
A string instance is valid against this attribute if it is a valid
688+
string representation of a UUID, according to <xref target="RFC4122"/>.
689+
</t>
685690
</list>
691+
</t>
692+
<t>
686693
Note that all valid URIs are valid IRIs, and all valid URI References are
687694
also valid IRI References.
688695
</t>
696+
<t>
697+
Note also that the "uuid" format is for plain UUIDs, not UUIDs in URNs. An example
698+
is "f81d4fae-7dec-11d0-a765-00a0c91e6bf6". For UUIDs as URNs, use the "uri" format,
699+
with a "pattern" regular expression of "^urn:uuid:" to indicate the URI scheme and
700+
URN namespace.
701+
</t>
689702
</section>
690703

691704
<section title="uri-template">
@@ -1069,6 +1082,7 @@
10691082
&RFC3339;
10701083
&RFC3986;
10711084
&RFC3987;
1085+
&RFC4122;
10721086
&RFC4291;
10731087
&RFC4648;
10741088
&RFC5322;

0 commit comments

Comments
 (0)
Please sign in to comment.