Swagger – Specify Optional Object Property or Multiple Responses
You’re getting the error in the model, because that’s not the way to define required properties. The correct form would be: “my_response_object”: { “type”: “object”, “required”: [ “result” ], “properties”: { “result”: { “type”: “string”, “description”: “value of ‘success’ or ‘error’, indicated whether was successful” }, “message”: { “type”: “string”, “description”: “an error message if … Read more