Open BelfordZ opened 2 years ago
Since all result & param reference ExampleObjects
, and example objects aren't really structured to be examples of errors, im wondering what the value for examplePairings.error should be?
Should you be able to ref an ErrorObject? ie:
{
"name": "examplepair",
"params": [...],
"error": { "$ref": "components/errors/bigbad" }
}
Should it be the same as the others, use ExampleObject.value and provide the whole error object?
{
"name": "examplepair",
"params": [...],
"error": {
"name": "big bad example",
"value": {
"code": 404,
"message": "dog ate homework",
"data": {}
}
}
}
either?
hm maybe value
itself should be the raw error or a ref?
This would also make automated testing tools able to test against failing cases.