json-schema-org / json-schema-spec

The JSON Schema specification
http://json-schema.org/
Other
3.82k stars 266 forks source link

add implicit reference string schemas #1432

Closed gregsdennis closed 5 months ago

gregsdennis commented 1 year ago

This is just a concept PR to get an idea of what #1078 might look like.

I'm not too particular on the wording of the new core spec section, but it's interesting to see the effect on the meta-schemas. It definitely eliminates the cruft of having to wrap every reference in { "$ref": ... }.

There is an argument to be made about readability, but I'm sure it's just a matter of getting used to seeing it (like boolean schemas was).

gregsdennis commented 5 months ago

I need to rework this as a proposal.