This PR adds validators to the date QueryParam so that each item in a string of multiple items is validated and parsed with the correct format.
500 errors in the API where Exceptions should be handled.
What?:
Adds validators in standard models.
Adds additional exception handling in the API to reduce instances of "unexpected error".
Impact:
As a side-effect, dates in the futures and yield curves can be sloppily entered - i.e, '2023' instead of '2023-01-01'. pandas.to_datetime is capable of handling more date formats than other date parsers.
Why?:
date
QueryParam so that each item in a string of multiple items is validated and parsed with the correct format.What?:
Impact:
pandas.to_datetime
is capable of handling more date formats than other date parsers.Testing Done:
/api/v1/fixedincome/government/yield_curve?chart=true&provider=fmp&date=2023%2C2022-13-5