Open markedwards opened 3 months ago
The generated OpenAPI spec describes 400 error responses as having this structure:
{ "type": "object", "properties": { "message": { "type": "string" } }, "required": ["message"], "additionalProperties": false }
They actually include error output from zod:
{ "message": "Invalid request body.", "errors": [ { "code": "invalid_string", "validation": "datetime", "message": "Invalid datetime", "path": [ "foo" ] } ] }
Ideally the OpenAPI spec should include this so generated clients can access the errors.
The generated OpenAPI spec describes 400 error responses as having this structure:
They actually include error output from zod:
Ideally the OpenAPI spec should include this so generated clients can access the errors.