{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-atlas-lineage-info-2-schema.json",
  "title": "AtlasLineageInfo_2",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-purview-lineage-api-openapi.yml#/components/schemas/AtlasLineageInfo_2",
  "type": "object",
  "properties": {
    "baseEntityGuid": {
      "type": "string",
      "format": "uuid"
    },
    "guidEntityMap": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/AtlasEntityHeader_2"
      }
    },
    "lineageDepth": {
      "type": "integer",
      "format": "int32"
    },
    "lineageDirection": {
      "type": "string",
      "enum": [
        "INPUT",
        "OUTPUT",
        "BOTH"
      ]
    },
    "relations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LineageRelation"
      }
    }
  },
  "$defs": {
    "AtlasEntityHeader_2": {
      "type": "object",
      "properties": {
        "attributes": {
          "type": "object",
          "additionalProperties": true
        },
        "typeName": {
          "type": "string"
        },
        "classificationNames": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "displayText": {
          "type": "string"
        },
        "guid": {
          "type": "string",
          "format": "uuid"
        },
        "labels": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "status": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "DELETED"
          ]
        }
      }
    },
    "LineageRelation": {
      "type": "object",
      "properties": {
        "fromEntityId": {
          "type": "string",
          "format": "uuid"
        },
        "relationshipId": {
          "type": "string",
          "format": "uuid"
        },
        "toEntityId": {
          "type": "string",
          "format": "uuid"
        }
      }
    }
  }
}