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

Viewed 28

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

  1. 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 ?

1 Answers

required: [...] is the only way. There are no shortcuts.

Related