{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-xdr/json-schema/cisco-xdr-enveloped-refs-schema.json",
  "title": "EnvelopedRefs",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-xdr-refer-api-openapi.yml#/components/schemas/EnvelopedRefs",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Ref"
      }
    },
    "errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ErrorMessage"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ErrorMessage": {
      "type": "object",
      "properties": {
        "module_instance_id": {
          "type": "string"
        },
        "module_type_id": {
          "type": "string"
        },
        "module_instance_state": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "fatal",
            "warning",
            "error"
          ]
        },
        "module": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "module_instance_id",
        "module_type_id",
        "code",
        "message",
        "type"
      ]
    },
    "Ref": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "module_instance_state": {
          "type": "string"
        },
        "module_type_id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "module": {
          "type": "string"
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "module_instance_id": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "description",
        "module_type_id",
        "title",
        "module",
        "id",
        "url",
        "module_instance_id"
      ]
    }
  }
}