You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might be useful to add a function that can bundle multiple schemas into a single schema, as described here. This pattern allows one to use a single schema JSON object that bundles together all of its subschemas. They're simply collected in the $defs object. A couple of notes:
The $id of each sub-schema must also be its key in the $defs object.
Probably makes sense to reject sub-schemas without an $id as an error.
Sample from the docs "customer" schema that bundles the address schema it references:
It might be useful to add a function that can bundle multiple schemas into a single schema, as described here. This pattern allows one to use a single schema JSON object that bundles together all of its subschemas. They're simply collected in the
$defs
object. A couple of notes:$id
of each sub-schema must also be its key in the$defs
object.$id
as an error.Sample from the docs "customer" schema that bundles the address schema it references:
The text was updated successfully, but these errors were encountered: