Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SchemaGeneration: Should support .optional() and .nullable() from validator #47

Open
tpoisseau opened this issue Feb 27, 2025 · 0 comments
Labels
@tuyau/openapi Issues about OpenAPI generation

Comments

@tpoisseau
Copy link

Ex:
tpoisseau/tuyau-openapi-repro@cd406cd#diff-4ba9d57de51f0449f13fc8ee5da3b21ab8538e89f4538a851b1711076930fb2f

produce

https://github.com/tpoisseau/tuyau-openapi-repro/blob/bf08929a9cac0d37552133f040da7c78853623f8/openapi.yaml#L17

It's false, it should generate

        - name: "query"
          in: "query"
          required: false
          schema:
            type: "string"
@Julien-R44 Julien-R44 added the @tuyau/openapi Issues about OpenAPI generation label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@tuyau/openapi Issues about OpenAPI generation
Projects
None yet
Development

No branches or pull requests

2 participants