Skip to content

Ensure CamelCasePropertyNamesContractResolver considers NamingStrategy in the cache - #2930

Open
mahdi-ninja wants to merge 1 commit into
JamesNK:masterfrom
mahdi-ninja:master
Open

Ensure CamelCasePropertyNamesContractResolver considers NamingStrategy in the cache#2930
mahdi-ninja wants to merge 1 commit into
JamesNK:masterfrom
mahdi-ninja:master

Conversation

@mahdi-ninja

Copy link
Copy Markdown

CamelCasePropertyNamesContractResolver uses a shared contract cache across all instances but it doesn't consider the fact that sometimes different instances use different naming strategies. #2927

In our case, we were using CamelCasePropertyNamesContractResolver in our ASP.NET app and then added Elsa Workflow which was using the same resolver with another naming strategy and broke our existing code. It is now fixed in Elsa Workflow (with this PR elsa-workflows/elsa-core#4521) but it took us a long time to understand what was wrong.

@mahdi-ninja

Copy link
Copy Markdown
Author

Hey @JamesNK
Do you plan to merge this? It feels like a serious bug to me

@narmontas

Copy link
Copy Markdown

We are having issues as well and would like this to be merged. @JamesNK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants