-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
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/
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?
xhs345 and luisl97
Metadata
Metadata
Assignees
Labels
No labels