I see in cps.v1.json under components/schemas/Error:
"Error": {
"title": "Error",
"type": "object",
"properties": {
"errorMessages": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string"
}
},
"traceId": {
"type": "string",
"format": "uuid"
}
}
}
This error seems to be used in cps.v1.json as well as in rcp.v1.json, pcp.v1.json and ccp.v1.json for 404 http error code (see here):
"$ref": "./cps.v1.json#/components/schemas/Error"
While for other http error codes (i.e. 400) each client uses it's own error defined under "components/schemas/Error".
I am curious as to why is this the case?
Since Error defined in cps and rcp is the same, why doesn't rcp use its own "local" error (and not /cps.v1.json)?
Thanks!