Skip to content

Item without datetime should not be allowed #503

Description

@jjrom

Describe the issue
Item without datetime is allowed even if start_time and end_time are not set

Expected behavior
HTTP 400 should be returned if datetime is not set or null unless start_time and end_time are set and not null

Additional context
Since storing only spatial item without datetime is needed (e.g. geological layers), the datetime check should be an option to add in config.env (e.g. ALLOW_NULL_DATETIME set to false as default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions