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
I have a POST request in which the server is weird, it is only case sensitive for the page parameter and supports PascalCase for the rest of the parameters.
I thought using JsonNamingPolicy.CamelCase would make all Request object properties use camelCase, but I was wrong, I misinterpreted the docs and it caused my response to always be page=1, it took me 1 day of debugging to find this out, and in the beginning I didn't use [AliasAs] because of my laziness.
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
Activity
penev92 commentedon Jun 20, 2023
Yes please!
CodingOctocat commentedon Dec 4, 2023
I have a POST request in which the server is weird, it is only case sensitive for the
pageparameter and supports PascalCase for the rest of the parameters.I thought using
JsonNamingPolicy.CamelCasewould make all Request object properties use camelCase, but I was wrong, I misinterpreted the docs and it caused my response to always bepage=1, it took me 1 day of debugging to find this out, and in the beginning I didn't use[AliasAs]because of my laziness.So I'd really like to have a feature that allows global control of case, like this:
LosLobosDev commentedon Feb 26, 2024
Any updates on this? It's a little confusing that
RefitSettings.ContentSerializerignores queries as objects.anaisbetts commentedon Feb 26, 2024
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
tcortega commentedon Jun 4, 2024
@ChrisPulman this should be closed
github-actions commentedon Jul 5, 2024
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.