Skip to content

Commit ba1a498

Browse files
committed
Add xref for schema document, fix $schema
Feedback from PR review.
1 parent e9faf6e commit ba1a498

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

jsonschema-core.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
</section>
364364
</section>
365365

366-
<section title="JSON Schema Documents">
366+
<section title="JSON Schema Documents" anchor="schema-documents">
367367
<t>
368368
A JSON Schema document, or simply a schema, is a JSON document used to describe
369369
an instance.
@@ -919,8 +919,9 @@
919919
</t>
920920
<t>
921921
The presence of this keyword with a boolean true value indicates that,
922-
during processing, it MUST be treated as a reference to the schema document
923-
where processing was initiated.
922+
during processing, it MUST be treated as a reference to the
923+
<xref target="schema-documents">schema document</xref> where processing
924+
was initiated.
924925
</t>
925926
<t>
926927
This document, known as the entry point schema, is the schema document that
@@ -940,6 +941,7 @@
940941
<artwork>
941942
<![CDATA[
942943
{
944+
"$schema": "http://json-schema.org/draft-08/schema#",
943945
"$id": "https://example.com/base",
944946
"properties": {
945947
"local": {
@@ -952,7 +954,7 @@
952954
}
953955
954956
{
955-
"$schema": "
957+
"$schema": "http://json-schema.org/draft-08/schema#",
956958
"$id": "https://example.com/extension",
957959
"properties": {
958960
"extended": {

0 commit comments

Comments
 (0)