Skip to content

State that implementations SHOULD accept a schema retrieval IRI / initial base IRI #1299

Closed
@handrews

Description

@handrews

While we discuss initial base IRIs, at no point do we make it clear that it's advantageous to allow an application to supply a retrieval IRI or other IRI for use as a base IRI in the absence of an absolute $id. Implementations vary with respect to how they handle this (or don't).

This strikes me as a SHOULD requirement rather than a MUST. It's advantageous to allow, but JSON Schema is usable without it, and the exact mechanism is not something we should specify. It's also conceivable that a specialized implementation would have a reason to skip this on the grounds of minimizing code or knowledge that external IRIs of this sort will not be useful in its intended execution context.

CLARIFICATION: "Initial base URI" is not the same thing as RFC 3986 §5.1.4's "Default base URI". An initial base URI can come from any of the sources described in RFC 3986 §5.1.2 - 5.1.4. This issue doesn't have anything to do with setting a broader §5.1.4 default base URI. Several comments related to that concept have been marked off-topic.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Closed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions