-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
Annotation cache does not honor naming strategy #1244
Comments
Fun fact: if you serialize |
You are re using the same cache dir for all the test cases, so the frist one puts the data in cache for the others. You should specify different cache directories |
What do you mean with different cache directories? You say, I have to specify a dedicated cache directory for each serializer which has a different naming strategy? There are actually 3 Naming Strategies provided by the JMS serializer. Imho, that should be part of the cache. There are three solutions to achieve what I expect:
Imho, the best solution would be having either number 3 or number 2. I dont think that its common to switch naming strategies on a response object as a whole. We only have issues because the metadata of the What do you think about this? |
If you have multiple serializers with different configurations using the same cache directory, it is expected to have very strange behaviors (as example the name for each property is cached and not computed at runtime). Another example is that different serializers might have different metadata for some classes... And many other use cases. Closing this as it is not a bug. |
Steps required to reproduce the problem
underscore
naming strategy (this will put parsed annotations to cache with the naming strategy applied)camelCase
naming strategy (this will only camel case the extending objects properties)Expected Result
Actual Result
The text was updated successfully, but these errors were encountered: