bcgov / bcgov/entity

Legal Api: Update error handling on invalid DATE format (Or other query params)

Open
#9,823 2 comments 0 reactions 0 assignees View on GitHub
bug ENTITY - DO NOT USE Priority2
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

* Originally there was an 500 response from the API when a GET request was made to retrieve DIRECTORS but with a bad DATE format.
* This ticket is to update the api's handling of that query param to give an accurate response due to invalid formatting in the DATE or other potential query param's.
* Validate the date format on the backend for directors and addresses endpoints (and any others that take query params), and return correct error response.

UI work to fix this has already been completed.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.