Our next milestone for the project is to incorporate more robust error messages when something unexpected happens during the API transaction. As of v0.4.0, we are only testing and expecting complete and correct records. While we've been discussing this, Alliance also mentioned this in #12 as part of feedback on the current API.
I'd like for us to discuss a handful of items before we start work on any implementation for v0.5.0. Namely,
- What are the likely scenarios for errors?
- What is the expected result for that condition (i.e., errror message)?
- What field should the expected result occur (i.e., an existing field, new field, or headers)?
Below are some scenarios that I've initially drawn-up. Some may be missing, so let's identify any new items. Once we're able to fill-out this table, I'll feel comfortable with proceeding. Please provide input and feedback in the comments below.
| # |
Scenario |
Expected Result |
Field |
| 1 |
Non-optional field is missing |
|
|
| 2 |
Incorrect data type |
|
|
| 3 |
Invalid JSON formatting |
|
|
| 4 |
Date is invalid formatting |
|
|
| 5 |
Invalid race codes (but valid data type) |
|
|
| 6 |
Child over 1 year-old (tentative) |
|
|
Our next milestone for the project is to incorporate more robust error messages when something unexpected happens during the API transaction. As of v0.4.0, we are only testing and expecting complete and correct records. While we've been discussing this, Alliance also mentioned this in #12 as part of feedback on the current API.
I'd like for us to discuss a handful of items before we start work on any implementation for v0.5.0. Namely,
Below are some scenarios that I've initially drawn-up. Some may be missing, so let's identify any new items. Once we're able to fill-out this table, I'll feel comfortable with proceeding. Please provide input and feedback in the comments below.