allOf with Shared Required Properties
GET/allof-shared-required
Schema:
allOf:
- type: object
properties:
sharedProp:
type: string
required: [sharedProp]
- type: object
properties:
anotherProp:
type: number
required: [anotherProp]
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
sharedProp stringrequired
anotherProp numberrequired
{
"sharedProp": "string",
"anotherProp": 0
}
Loading...