-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation only happens one field at a time #56
Comments
Interesting idea. We are already generating a marshmallow schema from all the parsed envvars, so this might be straightforward. I'm open to this if it doesn't add too much complexity. PRs welcome. |
I took a stab at this in #94. @robertlagrant Can you take a look at the API and let me know what you think? |
@sloria I missed this in my giant numbers of Github notifications! Apologies for the large delay. In fact, I was actually just about to fork to implement and saw this. I've had a play and it looks great to me. |
* Add API for deferred validation close #56 * Document deferred validation
Currently, with the following code:
If both env vars are missing, environs will simply display:
And only when that's set will it display the second error.
It'd be great to have it validate as far as possible all the required environment variables, perhaps with a manual flagging of when to start and stop such a process:
The text was updated successfully, but these errors were encountered: