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
Currently you are able to hide whole models by using /// @@Gen.model(hide: true) doc string. There's no ability to hide individual properties on demand.
Suggested solution
User should be able to add a doc string to a property to hide that property, similarly to the model hiding:
Problem
Currently you are able to hide whole models by using
/// @@Gen.model(hide: true)
doc string. There's no ability to hide individual properties on demand.Suggested solution
User should be able to add a doc string to a property to hide that property, similarly to the model hiding:
Which would generate zod schema with just
id
:Alternatives
This solution follows the same approach as the model hiding does, so I don't have alternative solutions here.
Additional context
I've already implemented this feature in a fork, there will be a PR for this.
The text was updated successfully, but these errors were encountered: