-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
Support CamelCase Query #1333
Comments
Yes please! |
I have a POST request in which the server is weird, it is only case sensitive for the private static readonly RefitSettings _camelCaseSettings = new() {
ContentSerializer = new SystemTextJsonContentSerializer(
new JsonSerializerOptions {
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
})
};
services.AddRefitClient<IWebService>(_camelCaseSettings) So I'd really like to have a feature that allows global control of case, like this: [CamelCaseNamingPolicy]
class Request
{ ... }
// or
services.AddRefitClient<IWebService>(/* add camelCase policy for application/x-www-form-urlencoded */) |
Any updates on this? It's a little confusing that |
Though I agree that this should probably have been done differently, this will have to be opt-in because it would be an incredible trolly breaking change otherwise |
@ChrisPulman this should be closed |
Is your feature request related to a problem? Please describe.
I have a class like this
It needs to be converted like this
But it is actually converted to
Is there any way to support CamelCase without using AliasAs?
Describe the solution you'd like
I am now like this but very redundant
Describe alternatives you've considered
Describe suggestions on how to achieve the feature
Additional context
The text was updated successfully, but these errors were encountered: