Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a relative-json-pointer format #417

Merged
merged 2 commits into from
Oct 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions jsonschema-validation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<!ENTITY RFC6570 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6570.xml">
<!ENTITY RFC6901 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6901.xml">
<!ENTITY RFC7159 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.7159.xml">
<!ENTITY I-D.luff-relative-json-pointer SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.draft-luff-relative-json-pointer-00.xml">
]>
<?rfc toc="yes"?>
<?rfc symrefs="yes"?>
Expand Down Expand Up @@ -1025,15 +1026,24 @@
</t>
</section>

<section title="json-pointer">
<section title="JSON Pointers">
<t>
This attribute applies to string instances.
These attributes apply to string instances.
</t>
<t>
A string instance is valid against this attribute if it
is a valid JSON string representation of a JSON Pointer,
according to
<xref target="RFC6901">RFC 6901, section 5</xref>
<list style="hanging">
<t hangText="json-pointer">
A string instance is valid against this attribute if it
is a valid JSON string representation of a JSON Pointer,
according to <xref target="RFC6901">RFC 6901, section 5</xref>.
</t>
<t hangText="relative-json-pointer">
A string instance is valid against this attribute if it is a valid
<xref target="I-D.luff-relative-json-pointer">Relative JSON Pointer</xref>.
</t>
</list>
To allow for both absolute and relative JSON Pointers, use "anyOf" or
"oneOf" to indicate support for either format.
</t>
</section>
<section title="regex">
Expand Down Expand Up @@ -1214,6 +1224,7 @@
&RFC6901;
&RFC7159;
&RFC5322;
&I-D.luff-relative-json-pointer;
<reference anchor="ecma262"
target="http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf">
<front>
Expand Down
4 changes: 2 additions & 2 deletions links.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "string",
"anyOf": [
{ "format": "json-pointer" },
{ "pattern": "^[0-9]" }
{ "format": "relative-json-pointer" }
]
}
},
Expand All @@ -35,7 +35,7 @@
"type": "string",
"anyOf": [
{ "format": "json-pointer" },
{ "pattern": "^[0-9]" }
{ "format": "relative-json-pointer" }
]
},
"title": {
Expand Down