SDK6: Have Parameters implement IEnumerable to allow for collection initializers #3411
almostchristian
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Our testing code and application code use collection initializers with Parameters resource which was possible in FHIR SDK 5.x. In SDK 6, this is no longer possible since
Baseno longer implementsIDictionary<string,object>, and in turnIEnumerablewhich is required for collection initializers.Describe alternatives you've considered
In our testing code, we were able to mitigate the issue by adding a new class
Parameters2which approximates the previous functionality with minimal code changes. Production code however would not be able to use this class and would have to go back to the old way of initializing the parameter contents.Beta Was this translation helpful? Give feedback.
All reactions