json-schema-spec icon indicating copy to clipboard operation
json-schema-spec copied to clipboard

The JSON Schema specification

Results 247 json-schema-spec issues
Sort by recently updated
recently updated
newest added

A schema is either an object or a [boolean](https://json-schema.org/draft/2020-12/json-schema-core.html#rfc.section.4.3.2). What if there was a third option (string) that is a shortcut for `$ref`? So instead of models like this ```json...

Type: Enhancement
core
proposal

The [`prefixItems` keyword section](http://json-schema.org/draft/2020-12/json-schema-core.html#rfc.section.10.3.1.1) says this: > Validation succeeds if each element of the instance validates against the schema at the same position, if any. This keyword does not constrain...

In the current draft, some keywords behavior depends on the presence and annotation results of keywords from other vocabularies. Example: https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.section.6.4.4 > If "contains" is not present within the same...

Currently, the keywords are organized based on what "kind" of keyword they are: applicator vs annotation vs assertion (vs "special"). | core | applicator | validation | unevaluated | meta-data...

Spec states that we must ignore some of the keywords in some cases. Examples from spec: * > The "$vocabulary" keyword MUST be ignored in schema documents that are not...

If you have a meta schema that references multiple vocabularies, and say two of them define semantics for the same keyword. How is the behaviour determined? * Would both be...

This keyword would belong to the Meta-Data vocabulary and would set the language of a JSON string as an ISO 639-1 language code. For example: ```json { "type": "string", "language":...

I have a question about using subschemas introduced by applicator keywords as targets in `$ref` and `$dynamicRef`. In the spec, I see only two ways how schemas are introduced for...

I suggested this could be possible and we would consider it if a real-world use case appears: https://github.com/json-schema-org/json-schema-spec/issues/864#issuecomment-597616343 Real-world use case: https://stackoverflow.com/questions/65660787/how-to-set-one-schema-for-n-1-elements-and-another-for-the-nth-element

https://github.com/jshttp/mime-db is a widely used database of media-type file-extension mappings. Notably, mime-db is used by Github Pages. So, if we can add `application/schema+json` `schema.json`, then any file with a `schema.json`...