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
{{ message }}
Repository navigation
Argument.FromAmong is validating more than the token for the arg #1556
I used Argument.FromAmong to limit the possible keys I can configure, but the validation is being applied to both arguments.
If I set the allowed keys of to allowedkey1 and allowedkey2 using Argument.FromAmong and I call config set allowedkey1 somevalue
I get an error that somevalue is not a valid for argument value, and that I should choose either allowedkey1 or allowedkey2.
Activity
iBicha commentedon Jan 3, 2022
Adding more details, when setting
and calling
config set key1 value1, it errors out withWhich means the both args are being validated against both allowlist. This leaves the cli in pretty much an unusable state.
fix dotnet#1556
fix dotnet#1556 (dotnet#1560)