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

Fallback to string for UUID columns #199

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

Conversation

giorgiobasile
Copy link

Hi, I'm running into issues with UUID columns, basically being always returned as null in the OGC Features endpoints, whether they are recognized as feature id or be kept in the feature properties.

I pinpointed the issue to the default serialization function that handles only Decimal serialization to string, and added another case for pgproto.UUID, but wondering if there is a better way to handle non-json-serializable fields. Hope it helps!

@vincentsarago
Copy link
Member

Thanks for the PR @giorgiobasile

would you able to provide a test case for this? 🙏

@giorgiobasile giorgiobasile force-pushed the features_serialization_default branch from 89cc909 to acbf1ad Compare December 12, 2024 13:14
@giorgiobasile
Copy link
Author

Sure, just did!

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