Forum Discussion
HKosova
4 years agoSmartBear Alumni (Retired)
Would this object be implicitly required?
No.
To make this object required you'll need to include it in the "required" list of the parent object:
A:
type: object
required: [b] # <----------
properties:
b:
$ref: '#/components/schemas/B'
B:
type: object
required: [foo, bar]
properties:
...
Related Content
- 2 months agoStoplight
- 2 years agoDavid_Be
- 2 months agoStoplight
- 6 years agolalitha123
Recent Discussions
- 8 days agoprogrammer_j
- 13 days agotobyclements