Skip to content

fix: preserve "datetime": null in hydration/dehydration (jsonb_strip_nulls strips nested nulls)#436

Open
seedlit wants to merge 1 commit intostac-utils:mainfrom
seedlit:fix/preserve-null-datetime-in-hydration
Open

fix: preserve "datetime": null in hydration/dehydration (jsonb_strip_nulls strips nested nulls)#436
seedlit wants to merge 1 commit intostac-utils:mainfrom
seedlit:fix/preserve-null-datetime-in-hydration

Conversation

@seedlit
Copy link
Copy Markdown

@seedlit seedlit commented May 9, 2026

Summary

Addresses #425

Fixes a bug where pgstac's database-level hydration drops "datetime": null from STAC item properties, producing STAC-invalid items when start_datetime/end_datetime are used.

Per the STAC Item spec, when a single datetime is not appropriate, the datetime field must be set to null (not absent) and start_datetime/end_datetime must be supplied.

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.

1 participant