AspNetCoreOData
AspNetCoreOData copied to clipboard
Issue when using camelcase enums
Assemblies affected Hypothetical version with latest ModelBuilder, and latest version
Describe the bug When investigating if we needed changes to support the new camelcase enum feature from ModelBuilder, I discovered a couple of issues.
- When using the new feature, this test case fails when the correct casing is used for the enum. Is this how we want to support camel casing? That only camel casing is allowed?
- This test does not succeed either. It should find the single entity with the
Thirdkey. Note that neither casing (thirdorThird) works. I think that there is a bug when using an enum as a key. Once that bug is fixed, we should also investigate if the camel casing is supported when routing.
- From triage, we decided that both test cases should pass
- Sam suggested adding
[FromODataUri]to the parameter in the controller method to get the deserialization to work correctly