Is there a way to tell the validator that _everything_ is required instead of marking every field on every struct as required? #1328
Unanswered
LordZardeck
asked this question in
Q&A
Replies: 1 comment
-
Unfortunately not, this package is based around exp-licit checks only and is not designed to support implicit ones. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As title says, I'd like to be able to assume everything is required and mark it optional if not required rather than the inverse. I'm writing structs to bind to HTTP request payloads, and the significant majority of the time if i've defined it, it's required.
Beta Was this translation helpful? Give feedback.
All reactions