Skip to content

Commit ff48a42

Browse files
authored
Merge pull request #715 from handrews/format
Add "uuid" format
2 parents eb25539 + 6cae0d0 commit ff48a42

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">
@@ -686,10 +687,22 @@
686687
Reference (either an IRI or a relative-reference),
687688
according to <xref target="RFC3987"/>.
688689
</t>
690+
<t hangText="uuid:">
691+
A string instance is valid against this attribute if it is a valid
692+
string representation of a UUID, according to <xref target="RFC4122"/>.
693+
</t>
689694
</list>
695+
</t>
696+
<t>
690697
Note that all valid URIs are valid IRIs, and all valid URI References are
691698
also valid IRI References.
692699
</t>
700+
<t>
701+
Note also that the "uuid" format is for plain UUIDs, not UUIDs in URNs. An example
702+
is "f81d4fae-7dec-11d0-a765-00a0c91e6bf6". For UUIDs as URNs, use the "uri" format,
703+
with a "pattern" regular expression of "^urn:uuid:" to indicate the URI scheme and
704+
URN namespace.
705+
</t>
693706
</section>
694707

695708
<section title="uri-template">
@@ -1073,6 +1086,7 @@
10731086
&RFC3339;
10741087
&RFC3986;
10751088
&RFC3987;
1089+
&RFC4122;
10761090
&RFC4291;
10771091
&RFC4648;
10781092
&RFC5322;

0 commit comments

Comments
 (0)