-
-
Notifications
You must be signed in to change notification settings - Fork 965
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
[Params] for enums should include all values by default #658
Comments
I like this idea, but I am not sure how we make it more intuitive. Our users are used to providing all values. Maybe something like: [AllEnumValues]
public StringComparison StringComparison { get; set; } @svick what do you think? |
@adamsitnik Yeah, I think that's reasonable (and it's what I meant by Regarding naming, I think that since it's a variation on |
@svick so maybe Naming is hard ;p |
Hey, @svick, @adamsitnik, @AndreyAkinshin, do you mind if I reopen #664 with additional changes (tests, validator)? |
@gsomix Feel free to go ahead. I don't know when I would have the time to do it myself. |
I think that with
[Params]
properties whose type is someenum
, a fairly common situation is that I want all values of thatenum
to be included. It would be nice if doing this didn't require listing all those values in the attribute. I.e., instead of having to write:I could write just:
Do you think this would be a useful feature? Would this be considered a breaking change? (If yes, something like
[EnumParams]
could be added instead.)The text was updated successfully, but these errors were encountered: