ForFhir<>() requires usage of deprecated constructors #2954
Unanswered
FullStackChef
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi! Could you maybe provide a little information about what extra steps you are taking? We deprecated these methods because we wanted users to use In any case, we should discuss internally because you are most likely not the only one to do this. Right now, our intended solution for users that want to override the default behaviour is for them to subclass We are aware that our documentation is running behind :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, we previously had our own implementation of the FhirJsonConverterFactory and FhirJsonConverter which extended the standard one in order to performa few tasks that make sense to do during the serialization process
In the most recent versions all of the constructors have been deprecated with a message recommending the use of ForFhir()
We have switched to doing so with ForFhir() for our general serialization and am trying to use ForFhir() for our custom converters
however ForFhir() expects an argument of type FhirJsonConverter which in order to use we have to use a constructor that as above is marked as deprecated.
I also can't find any overload of ForFhir that takes a serializationfilter as per the documentation. I'm struggling to understand what the correct approach is and note that the documentation is fairly light in this area - I understand that this is probably a bit of an edge case.
What is the correct / recommended approach is feature complete, I'm happy to contribute to issues / documentation if required.
Beta Was this translation helpful? Give feedback.
All reactions