Settings Validate Should Run After Interceptors #1938
Closed
brandonryan
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Realized this is the wrong repo. Sorry about that. Converted to issue in Cli Repo |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a situation where I'm trying to load configuration via
IConfiguration.bind().This works great! However, if I depend on this behavior to set properties in my settings when I have a validator, the validator runs before my interceptor raising errors.
In my situation, I have a password that I dont want to be empty, and I want to load from dotnet user secrets instead of passing in an argument every time. Right now I just have to do my validation in my command Execute and throw there, which sucks.
Beta Was this translation helpful? Give feedback.
All reactions