openapi-sampler
openapi-sampler copied to clipboard
pass through required values from allOf level
I have a use case in which I'm using the allOf discriminator to specify a required parameter that is not generally required for the schema. I was told this is a valid way to express this, though I cannot remember the source.
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/basicSchema"
}
],
"required": [
"amount"
]
}