{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://fdc3.finos.org/schemas/next/bridging/getAppMetadataAgentErrorResponse.schema.json",
  "title": "GetAppMetadata Agent Error Response",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/GetAppMetadataErrorResponseBase"
    },
    {
      "$ref": "agentErrorResponse.schema.json"
    }
  ],
  "$defs": {
    "GetAppMetadataErrorResponseBase": {
      "title": "GetAppMetadata Error Response", 
      "type": "object",
      "description": "A response to a getAppMetadata request that contains an error.",
      "properties": {
        "type": {
          "$ref": "../api/getAppMetadataResponse.schema.json#/$defs/GetAppMetadataResponseType"
        },
        "payload": {
          "$ref": "../api/getAppMetadataResponse.schema.json#/$defs/GetAppMetadataErrorResponsePayload"
        },
        "meta": {
          "title": "GetAppMetadata Response Metadata",
          "type": "object"
        }
      },
      "additionalProperties": false
    }
  }
}
