Closed kernwig closed 1 year ago
Hey mate this is an issue with the zod-to-openapi library and not this library
Note the field description
is part of the parameter object. In your sample @kernwig it is placed under schema.
@pjmolina , that's the bug I was reporting. @samchungy Thanks for pointing out the mix-up.
The output OpenAPI spec does not place the description of a (query string) parameter in the right place, and thus is lost when rendered.
Example:
Results in OpenAPI spec:
The
description: Business code identifying the Client
belongs one element up, next to the parametername
andrequired
. See https://swagger.io/docs/specification/describing-parameters/As a result, the description is not rendered by Swagger UI.