openapi-cli generator with openapi spec and gin code – enforcing required parameters and validation
I was looking at the pet store example in openapi-cli . The openapi/swagger spec has the “required” attribute for many fields, which implies that the parameter must be present in the request data.