premieroctet / next-crud

Full-featured CRUD routes for Next.js

Home Page:https://next-crud.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide a model property

hosseinsalemi opened this issue · comments

I have a model named User.

model User {
  id   Int   @id @default(autoincrement())
  username   String   @unique
  password   String
}

How can I hide password property in swagger?

Hello @hosseinsalemi , currently its not possible to hide a specific field from the Swagger. However this should be possible to add some related config in the NextCrud swagger options