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
Is your feature request related to a problem? Please describe.
Currently, allOf requires all schemas in the list to have the same type, and to have the same properties (besides nullable and required). However, we have a number of instances of schema inheritance, where we are using an enum key to distinguish the subclasses. For example:
Is your feature request related to a problem? Please describe.
Currently,
allOf
requires all schemas in the list to have the sametype
, and to have the same properties (besidesnullable
andrequired
). However, we have a number of instances of schema inheritance, where we are using an enum key to distinguish the subclasses. For example:Describe the solution you'd like
We would like
allOf
to be able to combine two enums, or a string and an enum, and take the more restrictive type.Describe alternatives you've considered
We could refactor out another schema, which consists of everything in
Parent
besides thetype
.Additional context
The text was updated successfully, but these errors were encountered: