Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Fix reference to "contentType" #256

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion latest/json-schema-validation.html
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ <h1 id="rfc.section.3.2"><a href="#rfc.section.3.2">3.2.</a> <a href="#assertion
<p id="rfc.section.3.2.p.1">Validation is a process of checking assertions. Each assertion adds constraints that an instance must satisfy in order to successfully validate. </p>
<p id="rfc.section.3.2.p.2">Assertion keywords that are absent never restrict validation. In some cases, this no-op behavior is identical to a keyword that exists with certain values, and these values are noted where known. </p>
<p id="rfc.section.3.2.p.3">All of the keywords in the <a href="#general">general</a> <cite title="NONE">[general]</cite>, <a href="#numeric">numeric</a> <cite title="NONE">[numeric]</cite>, and <a href="#string">string</a> <cite title="NONE">[string]</cite> sections are assertions, as well as "minItems", "maxItems", "uniqueItems", "minProperties", "maxProperties", and "required". Additionally, "dependencies" is shorthand for a combination of conditional and assertion keywords. </p>
<p id="rfc.section.3.2.p.4">The "format", "contentType", and "contentEncoding" keywords can also be implemented as assertions, although that functionality is an optional part of this specification, and the keywords convey additional non-assertion information. </p>
<p id="rfc.section.3.2.p.4">The "format", "contentMediaType", and "contentEncoding" keywords can also be implemented as assertions, although that functionality is an optional part of this specification, and the keywords convey additional non-assertion information. </p>
<h1 id="rfc.section.3.2.1"><a href="#rfc.section.3.2.1">3.2.1.</a> Assertions and Instance Primitive Types</h1>
<p id="rfc.section.3.2.1.p.1">Most validation assertions only constrain values within a certain primitive type. When the type of the instance is not of the type targeted by the keyword, the instance is considered to conform to the assertion. </p>
<p id="rfc.section.3.2.1.p.2">For example, the "maxLength" keyword will only restrict certain strings (that are too long) from being valid. If the instance is a number, boolean, null, array, or object, then it is valid against this assertion. </p>
Expand Down