What would you add to the SDK?
There are several places in the SitecoreData hierarchy that have collections of interfaces, such as Fields and Placeholders. These cannot be reliably serialised/deserialised without a type discriminator, at least not in .Net. That means the SitecoreData object cannot be remoted or persisted.
Adding a [JsonDerivedType] attribute to things like Component and JsonSerializedField would sort this right out.
Code of Conduct
What would you add to the SDK?
There are several places in the
SitecoreDatahierarchy that have collections of interfaces, such asFieldsandPlaceholders. These cannot be reliably serialised/deserialised without a type discriminator, at least not in .Net. That means theSitecoreDataobject cannot be remoted or persisted.Adding a
[JsonDerivedType]attribute to things likeComponentandJsonSerializedFieldwould sort this right out.Code of Conduct