Skip to content

Base POCO parsers/serializers on POCO, not IROD - #2950

Merged
ewoutkramer merged 8 commits into
develop-6.0from
6.0/parse-elements-for-xml-parsers
Nov 13, 2024
Merged

Base POCO parsers/serializers on POCO, not IROD#2950
ewoutkramer merged 8 commits into
develop-6.0from
6.0/parse-elements-for-xml-parsers

Conversation

@ewoutkramer

@ewoutkramer ewoutkramer commented Oct 23, 2024

Copy link
Copy Markdown
Member
  • ⚠️ BREAKING: Based the parsers/serializers on Base instead of IReadOnlyDictionary<>. Should not really matter, since internally, the code required the things to be subclasses of Base anyway to function correctly.
  • Added extensions so subtrees van be serialized, if the underlying engine is our new POCO serializer
  • Added extensions so one can serialize to/from streams, if the underlying engine is our new POCO serializer.
  • ⚠️ BREAKING: Removed the obsolete FhirJsonConverter constructors (use the ForFhir extension methods on JsonSerializerOptions).
  • ⚠️ BREAKING: Renamed methods on the IFhirSerializationExtensions, since they made no sense (e.g. DeserializeReaderToJson has become DeserializeFromJsonReader).

Fixes #2917.

# Conflicts:
#	src/Hl7.Fhir.Base/CompatibilitySuppressions.xml
# Conflicts:
#	src/Hl7.Fhir.Base/CompatibilitySuppressions.xml
#	src/Hl7.Fhir.Base/Serialization/BaseFhirJsonPocoSerializer.cs
#	src/Hl7.Fhir.Base/Serialization/FhirJsonConverter.cs
Comment thread src/Hl7.Fhir.Base/Serialization/BaseFhirJsonPocoSerializer.cs Outdated
Comment thread src/Hl7.Fhir.Base/Serialization/FhirXmlBuilderExtensions.cs
Comment thread src/Hl7.Fhir.Base/Serialization/FhirXmlBuilderExtensions.cs

@Kasdejong Kasdejong left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I accidentally set the review to "comment" instead of "request changes", this should tag it appropriately

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.

2 participants