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
allOf
OpenAPI lets you combine and extend model definitions using the allOf keyword. allOf takes an array of object definitions that are used for independent validation but together compose a single object. Still, it does not imply a hierarchy between the models. For that purpose, you should include the discriminator. To be valid against allOf, the data provided by the client must be valid against all of the given subschemas. In the following example, allOf acts as a tool for combining schemas used in specific cases with the general one. For more clearness, oneOf is also used with a discriminator.
I don't see that this is supported in this library yet?
The text was updated successfully, but these errors were encountered:
In the API spec it has information on the
discriminator
property to specify a hierarchy - https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/I don't see that this is supported in this library yet?
The text was updated successfully, but these errors were encountered: