Skip to content

Commit c2f9c36

Browse files
committed
"uritemplate" and "jsonpointer" formats
Addresses issue json-schema-org#109 by adding "uritemplate" and "jsonpointer", as defined by their RFCs, both of which already play roles within JSON (Hyper-)Schema. We use "uritemplate" in hyper-schema, but until the preprocessing step is removed we technically can't put the format in the meta-hyperschema. This is being addressed elsewhere. While we do not need "jsonpointer" for our meta-schema, it is used for schema+json URI fragments, and in other JSON-based media types such as JSON Patch.
1 parent 6873d66 commit c2f9c36

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

jsonschema-validation.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<!ENTITY RFC3339 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3339.xml">
88
<!ENTITY RFC3986 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3986.xml">
99
<!ENTITY RFC5322 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5322.xml">
10+
<!ENTITY RFC6570 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6570.xml">
11+
<!ENTITY RFC6901 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6901.xml">
1012
<!ENTITY RFC7159 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.7159.xml">
1113
]>
1214
<?rfc toc="yes"?>
@@ -817,6 +819,25 @@
817819
</t>
818820
</section>
819821

822+
<section title="uritemplate">
823+
<t>
824+
This attribute applies to string instances.
825+
</t>
826+
<t>
827+
A string instance is valid against this attribute if it is a valid URI Template
828+
(of any level), according to <xref target="RFC6570"/>.
829+
</t>
830+
</section>
831+
832+
<section title="jsonpointer">
833+
<t>
834+
This attribute applies to string instances.
835+
</t>
836+
<t>
837+
A string instance is valid against this attribute if it is a valid JSON Pointer,
838+
according to <xref target="RFC6901"/>
839+
</t>
840+
</section>
820841
</section>
821842
</section>
822843

@@ -861,6 +882,8 @@
861882
&RFC2673;
862883
&RFC3339;
863884
&RFC3986;
885+
&RFC6570;
886+
&RFC6901;
864887
&RFC7159;
865888
&RFC5322;
866889
<reference anchor="ecma262"

0 commit comments

Comments
 (0)