Forum Discussion

raven42's avatar
raven42
Occasional Visitor
2 years ago

How to indicate in OpenAPI that all response fields are required?

I have an answer with 40 fields. I need to specify that all fields are required.

Option to list all fields

required: [field1,field2,field3 ..... field40]
Maybe there is an option to indicate that ALL fields of the answer are required. For example allOf ?
No RepliesBe the first to reply