Skip to content

Schema error defined in cps.v1.json openapi documentation is used in other clients (i.e. rcp.v1.json) #16

@mbizjak

Description

@mbizjak

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions