Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

✨ Proposal: Provide resourceMediaType and resourceSchema when string format is a resource identifier, similar to contentMediaType and contentSchema #1557

Open
Labels
proposalInitial discussion of a new idea. A project will be created once a proposal document is created.
@torsknod-the-caridian

Description

Describe the inspiration for your proposal

I have JSON schemata, which contain URIs to further data (mostly further JSON and/ or XML, sometimes ZIPed before).
It would be helpful to have a way to define in which format this data, so people know what they can and have to support when following the data.

Describe the proposal

We already have https://json-schema.org/understanding-json-schema/reference/non_json_data#contentmediatype and https://json-schema.org/understanding-json-schema/reference/non_json_data#contentschema .
If the type is string and format is one of https://json-schema.org/understanding-json-schema/reference/string#resource-identifiers, allow to provide resourceMediaType and resourceSchema following the same rules like contentMediaType and contentSchema.

Describe alternatives you've considered

I first thought about using contentMediaType and contentSchema, but this is meant for the content to be the string, not the string being the reference to it.
This might cause trouble with existing tooling.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalInitial discussion of a new idea. A project will be created once a proposal document is created.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /