{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://fdc3.finos.org/schemas/2.1/bridging/getAppMetadataAgentResponse.schema.json",
  "title": "GetAppMetadata Agent Response",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/GetAppMetadataResponseBase"
    },
    {
      "$ref": "agentResponse.schema.json"
    }
  ],
  "$defs": {
    "GetAppMetadataResponseBase": {
      "title": "GetAppMetadata Response", 
      "type": "object",
      "description": "A response to a getAppMetadata request.",
      "properties": {
        "type": {
          "title": "GetAppMetadata Response Message Type",
          "const": "getAppMetadataResponse"
        },
        "payload": {
          "title": "GetAppMetadata Response Payload",
          "type": "object",
          "properties": {
            "appMetadata": {
              "$ref": "../api/api.schema.json#/definitions/AppMetadata"
            }
          },
          "required": ["appMetadata"],
          "additionalProperties": false
        },
        "meta": {
          "title": "GetAppMetadata Response Metadata",
          "type": "object"
        }
      },
      "additionalProperties": false
    }
  }
}
