Skip to content

Don't allow Collections without ids to be written #224

@lossyrob

Description

@lossyrob

Writing an empty Collection is allowed, and will cause a Collection with a NULL id:

postgis=# select pgstac.create_collection('{}');
postgis=# select count(*) from collections where id is null;
count
-------
     1

This caused a confusing issue during development due to an accidentally written Collection into a local dev PgSTAC.

It would be useful for PgSTAC to reject the null ID Collections to error loudly about this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions