{
  "$id": "https://schemas.ump.dev/v1/lineage-edge.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "created_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Created At"
    },
    "from_id": {
      "description": "Upstream (source) artifact id.",
      "title": "From Id",
      "type": "string"
    },
    "link_type": {
      "enum": [
        "derived_from",
        "calibrated_by",
        "designed_from",
        "scored_against",
        "mapped_by",
        "approved_by"
      ],
      "title": "Link Type",
      "type": "string"
    },
    "prov_relation": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Prov Relation"
    },
    "role": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Role"
    },
    "to_id": {
      "description": "Downstream artifact id.",
      "title": "To Id",
      "type": "string"
    }
  },
  "required": [
    "from_id",
    "to_id",
    "link_type"
  ],
  "title": "LineageEdge",
  "type": "object"
}
