Skip to content

Commit 1ba7a15

Browse files
committed
provide explicit permission to download schemas
1 parent 3627d12 commit 1ba7a15

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

jsonschema-core.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -1277,17 +1277,19 @@ The use of IRIs to identify remote schemas does not necessarily mean anything is
12771277
downloaded, but instead JSON Schema implementations SHOULD understand ahead of
12781278
time which schemas they will be using, and the IRIs that identify them.
12791279

1280-
When schemas are downloaded, for example by a generic user-agent that does not
1281-
know until runtime which schemas to download, see [Usage for
1282-
Hypermedia](#hypermedia).
1283-
12841280
Implementations SHOULD be able to associate arbitrary IRIs with an arbitrary
12851281
schema and/or automatically associate a schema's `$id`-given IRI, depending on
12861282
the trust that the validator has in the schema. Such IRIs and schemas can be
12871283
supplied to an implementation prior to processing instances, or may be noted
12881284
within a schema document as it is processed, producing associations as shown in
12891285
{{idexamples}}.
12901286

1287+
Implementations MAY provide functionality to automatically fetch schemas based
1288+
on location semantics expressed by the URI, however such functionality MUST be
1289+
disabled by default to prefer offline operation. When schemas are downloaded,
1290+
for example by a generic user-agent that does not know until runtime which
1291+
schemas to download, see {{hypermedia}}.
1292+
12911293
#### Detecting a Meta-Schema
12921294

12931295
Implementations MUST recognize a schema as a meta-schema if it is being examined

0 commit comments

Comments
 (0)