digirati-co-uk / iiif-net

IIIF models for dotnet
MIT License
3 stars 1 forks source link

Expand serialization customisation options #50

Closed p-kaczynski closed 2 months ago

p-kaczynski commented 2 months ago

Allows using this package's predetermined JsonSerializationSettings by library consumers, as well as overriding it for the library (de)serializers. Additionally allows passing custom (external to the library) types deriving from ResourceBase to be recognised during deserialization by ResourceBaseV3Converter.

Change in deserialization converter order is in theory a breaking change, but it didn't seem to work correctly beforehand (as per Donald's comments), so take it as you will.

Other changes are opt-in, i.e. have no effect if you don't actively interact with exposed bits.