✨ Proposal: Provide resourceMediaType and resourceSchema when string format is a resource identifier, similar to contentMediaType and contentSchema #1557
Labels
proposal
Initial discussion of a new idea. A project will be created once a proposal document is created.
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
isstring
andformat
is one of https://json-schema.org/understanding-json-schema/reference/string#resource-identifiers, allow to provideresourceMediaType
andresourceSchema
following the same rules likecontentMediaType
andcontentSchema
.Describe alternatives you've considered
I first thought about using
contentMediaType
andcontentSchema
, but this is meant for the content to be thestring
, not thestring
being the reference to it.This might cause trouble with existing tooling.
Additional context
No response
The text was updated successfully, but these errors were encountered: