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 like the idea of having shortcuts. However, diverging from the JSON Schema API could bring issues in the future.
What if length would be added in the spec with a different meaning?
As well the saving or the productivity boost isn't that much.
Maybe you could have a shortcut definition for your usecase
🚀 Feature Proposal
Add a
.length(24)
method as a shortcut for min + max length.Motivation
Right now to add a check for a string I need to write:
Example
WDYT?
The text was updated successfully, but these errors were encountered: