elysiajs / elysia-swagger

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

Property set to never is shown in the docs #105

Open matheusmichels opened 8 months ago

matheusmichels commented 8 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