Skip to content

Commit a560f8b

Browse files
authored
Merge pull request #372 from handrews/clarity
Minor readability / clarity fixes
2 parents 3b17738 + ec5c9cd commit a560f8b

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

jsonschema-core.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,12 @@
431431

432432
<section title='The "$id" keyword' anchor="id-keyword">
433433
<t>
434-
The "$id" keyword defines a URI for the schema,
435-
and the base URI that other URI references within the schema are resolved against.
436-
The "$id" keyword itself is resolved against the base URI that the object as a
437-
whole appears in.
434+
The "$id" keyword defines a URI for the schema, and the base URI that
435+
other URI references within the schema are resolved against.
436+
A subschema's "$id" is resolved against the base URI of its parent schema.
437+
If no parent sets an explicit base with "$id", the base URI is that of the
438+
entire document, as determined per
439+
<xref target="RFC3986">RFC 3986 section 5</xref>.
438440
</t>
439441
<t>
440442
If present, the value for this keyword MUST be a string, and MUST represent a
@@ -468,7 +470,7 @@
468470
Pointer references are updated.
469471
</t>
470472
<t>
471-
The effect of defining a URI fragment "$id" that neither
473+
The effect of defining a fragment-only "$id" URI reference that neither
472474
matches the above requirements nor is a valid JSON pointer
473475
is not defined.
474476
</t>

jsonschema-hyperschema.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@
211211
</figure>
212212

213213
<section title="Interaction with validation">
214+
<t>
215+
Hyper-schema keywords can be applied when the instance is valid against
216+
the schema that includes those keywords.
217+
</t>
214218
<t>
215219
Hyper-schemas MUST NOT be applied to an instance if the instance fails to
216220
validate against the validation keywords within or containing the hyper-schema.
@@ -464,6 +468,10 @@
464468
hint may be added in a future draft (see issue #73 in the GitHub repository).
465469
</cref>
466470
</t>
471+
<t>
472+
An operation is a specific use of a link described by an LDO, after any
473+
template variables have been resolved.
474+
</t>
467475
<t>
468476
There are several ways that a client can use data with a link:
469477
<list>
@@ -474,8 +482,8 @@
474482
inherent relation to the target resource's representation</t>
475483
</list>
476484
The three ways to use client-supplied data are each addressed by a separate
477-
schema keyword within the link description object. Link operations
478-
ignore schemas that are not relevant to their semantics.
485+
schema keyword within the link description object. When performing operations,
486+
clients SHOULD ignore schemas that are not relevant to their semantics.
479487
</t>
480488
<t>
481489
Link Description Objects do not directly indicate what operations, such

0 commit comments

Comments
 (0)