-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Description
Describe the bug
https://swagger.io/docs/specification/v3_0/describing-responses/ describes 5XX as a valid definition of a response.
openapi-zod-client only accepts 'default' and specific response codes, and generates status: NaN
for 5XX response code.
Minimal reproduction
- Change this line
openapi-zod-client/examples/repro.yaml
Line 32 in 192da9c
default: default:..
to"5XX": ..
or5XX: ..
The generated typescript includes
errors: [
{
status: NaN,
description: `unexpected error`,
schema: ...
},
]
Expected behavior
- An entry in the
errors
array with a status of"5XX"
or similar
Metadata
Metadata
Assignees
Labels
No labels