Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand serialization customisation options #50

Merged
merged 5 commits into from
Sep 23, 2024

Conversation

p-kaczynski
Copy link
Collaborator

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.

@@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<PackageId>iiif-net</PackageId>
<LangVersion>10.0</LangVersion>
Copy link
Collaborator

Choose a reason for hiding this comment

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

is it worth pointing out somewhere that the language version is being pinned to 10?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's kinda implied by the target framework, can be bumped at some point along with framework when 6 goes out of support. Which is /very/ soon :D

@p-kaczynski p-kaczynski merged commit 8c44376 into main Sep 23, 2024
1 check passed
@p-kaczynski p-kaczynski deleted the feature/serialisation/expand_customisation branch September 23, 2024 14:39
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