Skip to content

Commit 0ad7320

Browse files
committed
Merge pull request #2 from jdesrosiers/master
`profile` in Accept header must be a quoted-string
2 parents 09c4ead + 2e1c430 commit 0ad7320

File tree

3 files changed

+59
-59
lines changed

3 files changed

+59
-59
lines changed

jsonschema-core.xml

+10-10
Original file line numberDiff line numberDiff line change
@@ -380,23 +380,23 @@
380380
<t>
381381
JSON Schema uses <xref target="json-reference">JSON Reference</xref> as a
382382
mechanism for schema addressing. It extends this specification in two ways:
383-
383+
384384
<list>
385385
<t>JSON Schema offers facilities to alter the base URI against which a
386386
reference must resolve by the means of the "id" keyword;</t>
387387
<t>it offers schemas a mechanism to declare their own URIs, placing no limits on the structure of the URI</t>
388388
</list>
389389

390390
</t>
391-
391+
392392
<t>
393393
Altering the URI within a schema is called defining a new resolution scope.
394394
The initial resolution scope of a schema is the URI of the schema itself, or a suitable substitute URI if none is known.
395395
</t>
396396
</section>
397397

398398
<section title='URI resolution scope alteration with the "id" keyword'>
399-
399+
400400
<section title="Valid values">
401401
<t>
402402
The value for this keyword MUST be a string, and MUST be a valid URI (relative or absolute).
@@ -455,7 +455,7 @@
455455
Subschemas at the following URI-encoded <xref target="json-pointer">JSON
456456
Pointer</xref>s (starting from the root schema) define the following
457457
resolution scopes:
458-
458+
459459
<list style="hanging">
460460
<t hangText="# (document root)">http://x.y.z/rootschema.json#</t>
461461
<t hangText="#/schema1">http://x.y.z/rootschema.json#foo</t>
@@ -465,7 +465,7 @@
465465
<t hangText="#/schema3">some://where.else/completely#</t>
466466
</list>
467467
</t>
468-
468+
469469
</section>
470470

471471
<section title="Methods for dereferencing">
@@ -474,7 +474,7 @@
474474
This is known as "canonical referencing".
475475
</t>
476476
<t>
477-
Tools MAY also take note of the URIs schemas provide for themselves using "id", and use these values for schema dereferencing as well.
477+
Tools MAY also take note of the URIs schemas provide for themselves using "id", and use these values for schema dereferencing as well.
478478
This is known as "inline referencing".
479479
</t>
480480

@@ -516,7 +516,7 @@
516516
schema, and choose to use the appropriate subschema.</t>
517517
</list>
518518
</t>
519-
519+
520520
</section>
521521

522522
<section title="Inline dereferencing and fragments">
@@ -547,7 +547,7 @@
547547
An implementation choosing to support inline dereferencing SHOULD be able to use this kind of reference.
548548
</t>
549549
</section>
550-
550+
551551
</section>
552552

553553
<section title="Interoperability considerations">
@@ -593,7 +593,7 @@ Link: <http://example.com/my-hyper-schema#>; rel="describedBy"
593593
</figure>
594594

595595
</section>
596-
596+
597597
<section title='Correlation by means of the "Content-Type" header'>
598598
<t>
599599
Instances may also specify a schema using the "profile" MIME type parameter in the Content-Type header, when the MIME type MUST be "application/json", or any other subtype.
@@ -608,7 +608,7 @@ Link: <http://example.com/my-hyper-schema#>; rel="describedBy"
608608
<artwork>
609609
<![CDATA[
610610
Content-Type: application/my-media-type+json;
611-
profile=http://example.com/my-hyper-schema#
611+
profile="http://example.com/my-hyper-schema#"
612612
]]>
613613
</artwork>
614614
</figure>

0 commit comments

Comments
 (0)