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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Some default values in my schemas depend on low-level configuration of the library that uses the schema.
Silly example:
It happens rarely enough that I would hesitate to add complexity by wrapping the schema construction in a function:
But it happens often enough that I would like to deal with it somehow.
Something like a dictionary of variables as a second validator argument would fit my use-case nicely:
Is there another way to abstract default values in the schema than wrapping schema creation in a function in the current Arktype?
Is it even within the scope of the project? :)
Beta Was this translation helpful? Give feedback.
All reactions