{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-atlas-lineage-info-schema.json",
  "title": "AtlasLineageInfo",
  "description": "Lineage information for an entity",
  "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",
  "type": "object",
  "properties": {
    "baseEntityGuid": {
      "type": "string",
      "format": "uuid"
    },
    "childrenCount": {
      "type": "integer",
      "format": "int32"
    },
    "guidEntityMap": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/AtlasEntityHeader"
      }
    },
    "lineageDepth": {
      "type": "integer",
      "format": "int32"
    },
    "lineageDirection": {
      "type": "string",
      "enum": [
        "INPUT",
        "OUTPUT",
        "BOTH"
      ]
    },
    "lineageWidth": {
      "type": "integer",
      "format": "int32"
    },
    "parentRelations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ParentRelation"
      }
    },
    "relations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LineageRelation"
      }
    }
  },
  "$defs": {
    "AtlasClassification": {
      "type": "object",
      "description": "A classification instance",
      "properties": {
        "attributes": {
          "type": "object",
          "additionalProperties": true
        },
        "typeName": {
          "type": "string"
        },
        "lastModifiedTS": {
          "type": "string"
        },
        "entityGuid": {
          "type": "string",
          "format": "uuid"
        },
        "entityStatus": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "DELETED"
          ]
        },
        "propagate": {
          "type": "boolean"
        },
        "removePropagationsOnEntityDelete": {
          "type": "boolean"
        },
        "validityPeriods": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TimeBoundary"
          }
        }
      }
    },
    "AtlasEntityHeader": {
      "type": "object",
      "description": "An instance of an entity header",
      "properties": {
        "attributes": {
          "type": "object",
          "additionalProperties": true
        },
        "typeName": {
          "type": "string"
        },
        "lastModifiedTS": {
          "type": "string"
        },
        "classificationNames": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "classifications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AtlasClassification"
          }
        },
        "displayText": {
          "type": "string"
        },
        "guid": {
          "type": "string",
          "format": "uuid"
        },
        "labels": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "meaningNames": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "meanings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AtlasTermAssignmentHeader"
          }
        },
        "status": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "DELETED"
          ]
        }
      }
    },
    "AtlasTermAssignmentHeader": {
      "type": "object",
      "properties": {
        "confidence": {
          "type": "integer",
          "format": "int32"
        },
        "createdBy": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "displayText": {
          "type": "string"
        },
        "expression": {
          "type": "string"
        },
        "relationGuid": {
          "type": "string",
          "format": "uuid"
        },
        "status": {
          "type": "string",
          "enum": [
            "DISCOVERED",
            "PROPOSED",
            "IMPORTED",
            "VALIDATED",
            "DEPRECATED",
            "OBSOLETE",
            "OTHER"
          ]
        },
        "steward": {
          "type": "string"
        },
        "termGuid": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    "LineageRelation": {
      "type": "object",
      "properties": {
        "fromEntityId": {
          "type": "string",
          "format": "uuid"
        },
        "relationshipId": {
          "type": "string",
          "format": "uuid"
        },
        "toEntityId": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    "ParentRelation": {
      "type": "object",
      "properties": {
        "childEntityId": {
          "type": "string",
          "format": "uuid"
        },
        "parentEntityId": {
          "type": "string",
          "format": "uuid"
        },
        "relationshipId": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    "TimeBoundary": {
      "type": "object",
      "properties": {
        "endTime": {
          "type": "string"
        },
        "startTime": {
          "type": "string"
        },
        "timeZone": {
          "type": "string"
        }
      }
    }
  }
}