I'm designing my API using Swagger in Restlet studio, and there are some calls that use the same model.
In my case the model is an Array of objects.
I would like to declare some of the object parameters as required and some as optional (as they are by default).
However it's something that should vary in different calls. I couldn't find a way to that in YAML nor in Restled studio.
Is my only option to create different models for each API call?
I did find a similar question here 2 years ago without any reponse:
How can I make parameter optional in some but required in other cases in Swagger/PHP?