You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like the option to omit some fields specifically when generating the schema.
Right now, my model contains an updatedAt field, it is compulsory, but I want to specifically exclude this from the schema as it's automatically generated from the database.
In this specific case, I know I can simply change the field to be optional, but I'd really like the option to omit specific fields, perhaps with a comment like some other validators do? Or something? That would give a little control over the json-schema without messing with the DB.
The text was updated successfully, but these errors were encountered:
hmmm alternatively, perhaps it could be great to simply have a list of fields to exclude. Since you already have the exclude logic for relation fields and such, it could be nice simply to have a custom array of fields to exclude. In my case, that would also work and I think be a really useful feature, in this case I could add "updatedAt" and just ignore all references to that field.
Hi there,
I'd like the option to omit some fields specifically when generating the schema.
Right now, my model contains an updatedAt field, it is compulsory, but I want to specifically exclude this from the schema as it's automatically generated from the database.
In this specific case, I know I can simply change the field to be optional, but I'd really like the option to omit specific fields, perhaps with a comment like some other validators do? Or something? That would give a little control over the json-schema without messing with the DB.
The text was updated successfully, but these errors were encountered: