Forum Discussion
joejoyce
Staff
4 years agoHey Maktum_pasha. By default, OpenAPI treats all request parameters as optional. You can add required: true
to mark a parameter as required. Note that path parameters must have required: true
, because they are always required. You can find more information here: https://swagger.io/docs/specification/describing-parameters/. Let me know if this helps!