Totally rewrite so all possible schemas can be generated from a single call
createSchema()
This is better because it allows arbitrary combinations of keywords that previously weren't possible.
For example, we can now specify a type along with an allOf and an anyOf, all at the same time, and get the final type constrained to the intersection of the constraints all of those fields impose.
Totally rewrite so all possible schemas can be generated from a single call
createSchema()
This is better because it allows arbitrary combinations of keywords that previously weren't possible.
For example, we can now specify a
type
along with anallOf
and ananyOf
, all at the same time, and get the final type constrained to the intersection of the constraints all of those fields impose.