Closed nickevansuk closed 4 years ago
I'm thinking that to align more with our modelling elsewhere then we could instead go with:
{
"@context": "https://openactive.io/ns/oa.jsonld",
"type": "IncompleteCustomerDetailsError",
"title": "Incomplete customer details",
"details": "No customer details supplied",
"status": 400,
"instance": "/orders",
"method": "POST"
}
And define a set of BookingAPIError
types. This diverges slightly with RFC 7807 but continues to borrow from its model. It's also closer to what Hydra uses
Also noting that the specification currently mentions that one or many errors may be returned, but does not specify a mechanism for returning an array.
This feedback was incorporated, closing issue as now resolved.
https://openactive.io/errors/unavailable_offer
Should error types be: a) using the standard OpenActive namespace b) using the standard schema.org / OpenActive namespace case and naming convention
i.e
https://openactive.io/UnavailableOfferError