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

Add custom logical types #448

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jwtryg
Copy link

@jwtryg jwtryg commented Sep 10, 2024

closes #435

Hi @nrwiersma

This PR adds the possibility to register custom logical types for the schema. These logicaltypes are primitive, and does not include logic for handling custom encoding/decoding, but simply adds the the custom logicalType to be referenced in the schemas.

I have added the WithCustomLogicalType function as a SchemaOption, but not at all schemas use this option - I saw this pattern was already used for other schema options.

Let me know what you think :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

logicalType - keep property
1 participant