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

Property set to never is shown in the docs #105

Open
matheusmichels opened this issue Mar 15, 2024 · 0 comments
Open

Property set to never is shown in the docs #105

matheusmichels opened this issue Mar 15, 2024 · 0 comments

Comments

@matheusmichels
Copy link

matheusmichels commented Mar 15, 2024

In my app, I have the following Elysia/Typebox schema:

const userSchema = t.Object({
  ...,
  password: t.Never(),
})

This prevents the API from sending the password field as part of its response.

But even with that, the password field is shown in the Swagger generated docs. I strongly believe it shouldn't be there.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant