elysiajs / elysia-swagger

A plugin for Elysia to auto-generate Swagger page
MIT License
74 stars 36 forks source link

Property set to never is shown in the docs #105

Open matheusmichels opened 3 months ago

matheusmichels commented 3 months ago

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