API handling of empty values #284

Closed
opened 2023-01-23 14:38:15 +01:00 by mpeltriaux · 1 comment
Owner

Status quo

The API can process list/array structures for further details on the data:

...
    "deadlines": []
...

However, there could be invalid data inside these arrays, such as

...
    "deadlines": [""]
...

These messages lead to an 500 error.

Enhancement

If an entry on any array can not be processed, the API user should be informed properly using a valid return message. The entry should not be processed partially (e.g. by ignoring the invalid entries and only processing valid ones).

# Status quo The API can process list/array structures for further details on the data: ```json ... "deadlines": [] ... ``` However, there could be invalid data inside these arrays, such as ```json ... "deadlines": [""] ... ``` These messages lead to an 500 error. # Enhancement If an entry on any array can not be processed, the API user should be informed properly using a valid return message. The entry should not be processed partially (e.g. by ignoring the invalid entries and only processing valid ones).
mpeltriaux added the
enhancement
label 2023-01-23 14:38:15 +01:00
mpeltriaux self-assigned this 2023-01-23 14:38:15 +01:00
mpeltriaux referenced this issue from a commit 2023-02-01 08:13:04 +01:00
mpeltriaux added reference 284_285_API_changes 2023-02-06 14:58:37 +01:00
Author
Owner

Merged in

# Merged in #296
btuelek referenced this issue from a commit 2024-12-05 13:18:38 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IT-Naturschutz/konova#284
No description provided.