-
Notifications
You must be signed in to change notification settings - Fork 169
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
String-based-enums comparers have to be case insensitive #533
Comments
When you say "normal enum converters", what do you mean? |
I mean generated enum converters - https://github.com/Azure/autorest.csharp/blob/feature/v3/test/TestServerProjects/body-string/Generated/Models/Colors.Serialization.cs#L24 As I've said before guidelines do not seem mandate any casing requirements they just provide a sample implementation. This is something that is service specific but considering that code generator intends to cover as much services as possible and a lot of them send enum values in different cases we've opted for a more relaxed implementation. |
I'm not disagreeing with why the change was made, but then we should update the guidelines to match. You talk a lot about consistency, so I'm advocating that we be consistent. Or at least update the guidelines with basically what you're saying: evaluate on a case-by-case basis. My concern is that, lately, we are ignoring quite a few guidelines with regard to the generator (e.g. collection properties). |
To be consistent with normal enum converters.
The text was updated successfully, but these errors were encountered: