How to always return camelCase properties? #599
Unanswered
piatkiewicz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Properties in my model use PascalCase and OData endpoint also returns it with PascalCase. I want to return it as camelCase. Is it possible?
I described the details here: https://stackoverflow.com/questions/72274263/asp-net-core-net-6-and-odata-how-to-return-lowercase-json
Edit: Solved
The problem was that I was using AddRouteComponents method and custom Edm model. Without it AddJsonObject chained method works. Described here: https://github.com/OData/AspNetCoreOData/blob/main/docs/camel_case_scenarios.md
Beta Was this translation helpful? Give feedback.
All reactions