{
  "$defs": {
    "AcceptedValuesCheck": {
      "additionalProperties": false,
      "properties": {
        "column": {
          "title": "Column",
          "type": "string"
        },
        "values": {
          "items": {},
          "title": "Values",
          "type": "array"
        }
      },
      "required": [
        "column",
        "values"
      ],
      "title": "AcceptedValuesCheck",
      "type": "object"
    },
    "CheckConfig": {
      "additionalProperties": false,
      "properties": {
        "accepted_values": {
          "anyOf": [
            {
              "$ref": "#/$defs/AcceptedValuesCheck"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "freshness": {
          "anyOf": [
            {
              "$ref": "#/$defs/FreshnessCheck"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "not_null": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Not Null"
        },
        "range": {
          "anyOf": [
            {
              "$ref": "#/$defs/RangeCheck"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "regex": {
          "anyOf": [
            {
              "$ref": "#/$defs/RegexCheck"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "row_count": {
          "anyOf": [
            {
              "$ref": "#/$defs/RowCountCheck"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "unique": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Unique"
        }
      },
      "title": "CheckConfig",
      "type": "object"
    },
    "ColumnConfig": {
      "additionalProperties": false,
      "description": "One column of a model contract.",
      "properties": {
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "What the column holds. Not part of the checksum or the plan hash.",
          "title": "Description"
        },
        "dtype": {
          "description": "Logical type, for example int64, string, decimal(18,2) or timestamp[us, UTC].",
          "pattern": "^(?:u?int(?:8|16|32|64|128)|float(?:32|64)|string|boolean|binary|date|time|null|decimal\\(\\d+,\\d+\\)|timestamp\\[(?:ms|us|ns)(?:, [^\\]]+)?\\]|duration\\[(?:ms|us|ns)\\]|(?:list|struct)<.+>)$",
          "title": "Dtype",
          "type": "string"
        },
        "name": {
          "description": "Column name, case-sensitive.",
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "nullable": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "pattern": "^\\$\\{.+\\}$",
              "type": "string"
            }
          ],
          "default": true,
          "description": "False makes a null in the column a contract violation.",
          "title": "Nullable"
        },
        "sensitive": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "pattern": "^\\$\\{.+\\}$",
              "type": "string"
            }
          ],
          "default": false,
          "description": "True masks the column's values in samples (`pipeloom diff --samples`). Not in checksums.",
          "title": "Sensitive"
        }
      },
      "required": [
        "name",
        "dtype"
      ],
      "title": "ColumnConfig",
      "type": "object"
    },
    "DataCheckConfig": {
      "additionalProperties": false,
      "properties": {
        "not_null": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Not Null"
        },
        "relationships": {
          "anyOf": [
            {
              "$ref": "#/$defs/RelationshipsCheck"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "unique": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Unique"
        }
      },
      "title": "DataCheckConfig",
      "type": "object"
    },
    "DataTestConfig": {
      "additionalProperties": false,
      "description": "A check run against the whole written table after the write (ADR-0045).",
      "properties": {
        "blocking": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "pattern": "^\\$\\{.+\\}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Since 1.3 (ADR-0056): with `on_violation: fail`, whether a failure skips the model's\ndescendants. Unset means true. false still fails the unit and the run, but the descendants\nrun.",
          "title": "Blocking"
        },
        "check": {
          "$ref": "#/$defs/DataCheckConfig",
          "description": "The check."
        },
        "name": {
          "description": "Name shown in results.",
          "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
          "title": "Name",
          "type": "string"
        },
        "on_violation": {
          "default": "fail",
          "description": "warn records the count; fail fails the unit with PLQ303 (the data stays written).",
          "enum": [
            "warn",
            "fail"
          ],
          "title": "On Violation",
          "type": "string"
        }
      },
      "required": [
        "name",
        "check"
      ],
      "title": "DataTestConfig",
      "type": "object"
    },
    "DeletesConfig": {
      "additionalProperties": false,
      "properties": {
        "column": {
          "description": "Column that marks a deleted row.",
          "title": "Column",
          "type": "string"
        },
        "mode": {
          "default": "hard",
          "description": "Remove the row, or keep it flagged.",
          "enum": [
            "hard",
            "soft"
          ],
          "title": "Mode",
          "type": "string"
        },
        "value": {
          "default": true,
          "description": "Value of the column that means deleted.",
          "title": "Value"
        }
      },
      "required": [
        "column"
      ],
      "title": "DeletesConfig",
      "type": "object"
    },
    "ExpectationConfig": {
      "additionalProperties": false,
      "properties": {
        "check": {
          "anyOf": [
            {
              "$ref": "#/$defs/CheckConfig"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "A portable check."
        },
        "expr": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "An engine-dialect predicate.",
          "title": "Expr"
        },
        "name": {
          "description": "Name shown in results.",
          "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
          "title": "Name",
          "type": "string"
        },
        "on_violation": {
          "default": "fail",
          "description": "What happens to rows or runs that violate it.",
          "enum": [
            "warn",
            "drop",
            "fail"
          ],
          "title": "On Violation",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "title": "ExpectationConfig",
      "type": "object"
    },
    "FreshnessCheck": {
      "additionalProperties": false,
      "properties": {
        "column": {
          "title": "Column",
          "type": "string"
        },
        "max_age": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "integer"
            },
            {
              "pattern": "^(?=.)(?:\\d+d)?(?:\\d+h)?(?:\\d+m)?(?:\\d+s)?$|^\\d+$|^\\$\\{.+\\}$",
              "type": "string"
            }
          ],
          "title": "Max Age"
        }
      },
      "required": [
        "column",
        "max_age"
      ],
      "title": "FreshnessCheck",
      "type": "object"
    },
    "GivenConfig": {
      "additionalProperties": false,
      "description": "Rows for a unit test: inline or from a CSV file.",
      "properties": {
        "columns": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/ColumnConfig"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Logical types of the columns; others are taken from the upstream contract or inferred.",
          "title": "Columns"
        },
        "csv": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "A CSV file with a header, relative to the project dir; an empty field is null.",
          "title": "Csv"
        },
        "rows": {
          "anyOf": [
            {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The rows, one mapping per row.",
          "title": "Rows"
        }
      },
      "title": "GivenConfig",
      "type": "object"
    },
    "IncrementalConfig": {
      "additionalProperties": false,
      "properties": {
        "column": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Column compared with the watermark.",
          "title": "Column"
        },
        "input": {
          "description": "Alias of the input that is filtered.",
          "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
          "title": "Input",
          "type": "string"
        },
        "interval": {
          "anyOf": [
            {
              "$ref": "#/$defs/IntervalConfig"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Process the input in windows of event_time instead of after a watermark (since 1.3)."
        },
        "lookback": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "integer"
            },
            {
              "pattern": "^(?=.)(?:\\d+d)?(?:\\d+h)?(?:\\d+m)?(?:\\d+s)?$|^\\d+$|^\\$\\{.+\\}$",
              "type": "string"
            }
          ],
          "default": 0,
          "description": "Reprocess this much before the watermark.",
          "title": "Lookback"
        },
        "on_cursor_value_missing": {
          "anyOf": [
            {
              "enum": [
                "raise",
                "include",
                "exclude"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Rows whose `column` is null: fail the unit, keep them in every batch, or drop and count\nthem. Unset keeps the 1.0 behavior (the watermark filter drops them, unreported). Watermark\nmodels only (since 1.3).",
          "title": "On Cursor Value Missing"
        },
        "watermark_source": {
          "default": "state",
          "description": "Where the watermark is read from.",
          "enum": [
            "state",
            "target"
          ],
          "title": "Watermark Source",
          "type": "string"
        }
      },
      "required": [
        "input"
      ],
      "title": "IncrementalConfig",
      "type": "object"
    },
    "InputConfig": {
      "additionalProperties": false,
      "properties": {
        "ref": {
          "anyOf": [
            {
              "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Name of another model.",
          "title": "Ref"
        },
        "source": {
          "anyOf": [
            {
              "pattern": "^[A-Za-z_][A-Za-z0-9_]*(?:\\.[A-Za-z_][A-Za-z0-9_]*)?$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Name of a declared source, or `group.table` for a table of a source group.",
          "title": "Source"
        }
      },
      "title": "InputConfig",
      "type": "object"
    },
    "IntervalConfig": {
      "additionalProperties": false,
      "description": "Interval incrementals (ADR-0054): the model runs one half-open UTC window at a time.",
      "properties": {
        "begin": {
          "description": "ISO date or date-time; the first window is the one that holds it. Naive means UTC.",
          "format": "date-time",
          "title": "Begin",
          "type": "string"
        },
        "event_time": {
          "description": "Column of the input and of the output that places a row in a window.",
          "minLength": 1,
          "title": "Event Time",
          "type": "string"
        },
        "grain": {
          "description": "Window length. Windows start at the grain boundary in UTC; weeks start on Monday.",
          "enum": [
            "hour",
            "day",
            "week",
            "month",
            "year"
          ],
          "title": "Grain",
          "type": "string"
        },
        "lookback": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "integer"
            },
            {
              "pattern": "^\\$\\{.+\\}$",
              "type": "string"
            }
          ],
          "default": 0,
          "description": "Windows before the first missing one that run again.",
          "title": "Lookback"
        }
      },
      "required": [
        "event_time",
        "grain",
        "begin"
      ],
      "title": "IntervalConfig",
      "type": "object"
    },
    "ModelSettings": {
      "additionalProperties": false,
      "description": "Settings a model may inherit from defaults.",
      "properties": {
        "catalog": {
          "anyOf": [
            {
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Catalog of the target relation; wins over the naming strategy's catalog.",
          "title": "Catalog"
        },
        "cluster_by": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Clustering columns.",
          "title": "Cluster By"
        },
        "expectations": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/ExpectationConfig"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Data quality expectations.",
          "title": "Expectations"
        },
        "frame_api": {
          "anyOf": [
            {
              "enum": [
                "native",
                "narwhals"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Frame type passed to Python bodies.",
          "title": "Frame Api"
        },
        "incremental": {
          "anyOf": [
            {
              "$ref": "#/$defs/IncrementalConfig"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Incremental processing."
        },
        "materialized": {
          "anyOf": [
            {
              "enum": [
                "table",
                "incremental",
                "view",
                "ephemeral",
                "intermediate"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "How the model is stored.",
          "title": "Materialized"
        },
        "meta": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Free-form metadata.",
          "title": "Meta"
        },
        "partition_by": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Partition columns.",
          "title": "Partition By"
        },
        "quality": {
          "anyOf": [
            {
              "$ref": "#/$defs/QualityConfig"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Quarantine settings."
        },
        "retries": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "integer"
            },
            {
              "pattern": "^\\$\\{.+\\}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Retries after a failure.",
          "title": "Retries"
        },
        "retry_delay": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "integer"
            },
            {
              "pattern": "^(?=.)(?:\\d+d)?(?:\\d+h)?(?:\\d+m)?(?:\\d+s)?$|^\\d+$|^\\$\\{.+\\}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Base delay between retries.",
          "title": "Retry Delay"
        },
        "retry_on": {
          "anyOf": [
            {
              "enum": [
                "transient",
                "any"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Which failures are retried.",
          "title": "Retry On"
        },
        "schema": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Schema (namespace) of the target relation.",
          "title": "Schema"
        },
        "sql_dialect": {
          "anyOf": [
            {
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "sqlglot dialect of the model's `ctx.sql` queries; translated when it differs from the\nengine's (needs the sqlglot extra).",
          "title": "Sql Dialect"
        },
        "tags": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Tags used by selectors.",
          "title": "Tags"
        },
        "timeout": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "integer"
            },
            {
              "pattern": "^(?=.)(?:\\d+d)?(?:\\d+h)?(?:\\d+m)?(?:\\d+s)?$|^\\d+$|^\\$\\{.+\\}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Time limit per attempt.",
          "title": "Timeout"
        },
        "write": {
          "anyOf": [
            {
              "$ref": "#/$defs/WriteConfig"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Write behaviour."
        }
      },
      "title": "ModelSettings",
      "type": "object"
    },
    "PropertiesEntry": {
      "additionalProperties": false,
      "description": "A properties entry: the description, settings and contract of a model defined elsewhere.",
      "properties": {
        "columns": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/ColumnConfig"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Model contract, used when the model declares none itself.",
          "title": "Columns"
        },
        "config": {
          "anyOf": [
            {
              "$ref": "#/$defs/ModelSettings"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Model settings, below the model's own and above the `models:` tree."
        },
        "data_tests": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/DataTestConfig"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Checks run against the written table, used when the model sets none itself (ADR-0045).",
          "title": "Data Tests"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "What the model holds.",
          "title": "Description"
        },
        "name": {
          "description": "Name of the model it describes.",
          "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
          "title": "Name",
          "type": "string"
        },
        "unit_tests": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/UnitTestConfig"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Cases `pipeloom test` runs on given rows, keyed by input alias (ADR-0045).",
          "title": "Unit Tests"
        }
      },
      "required": [
        "name"
      ],
      "title": "PropertiesEntry",
      "type": "object"
    },
    "QualityConfig": {
      "additionalProperties": false,
      "properties": {
        "max_drop_ratio": {
          "anyOf": [
            {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            {
              "pattern": "^\\$\\{.+\\}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Fail the unit when more than this share of rows is dropped.",
          "title": "Max Drop Ratio"
        },
        "quarantine": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "pattern": "^\\$\\{.+\\}$",
              "type": "string"
            }
          ],
          "default": false,
          "description": "Write dropped rows to a quarantine table.",
          "title": "Quarantine"
        }
      },
      "title": "QualityConfig",
      "type": "object"
    },
    "RangeCheck": {
      "additionalProperties": false,
      "properties": {
        "column": {
          "title": "Column",
          "type": "string"
        },
        "max": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "pattern": "^\\$\\{.+\\}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Max"
        },
        "min": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "pattern": "^\\$\\{.+\\}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Min"
        }
      },
      "required": [
        "column"
      ],
      "title": "RangeCheck",
      "type": "object"
    },
    "RegexCheck": {
      "additionalProperties": false,
      "properties": {
        "column": {
          "title": "Column",
          "type": "string"
        },
        "pattern": {
          "title": "Pattern",
          "type": "string"
        }
      },
      "required": [
        "column",
        "pattern"
      ],
      "title": "RegexCheck",
      "type": "object"
    },
    "RelationshipsCheck": {
      "additionalProperties": false,
      "description": "Every non-null `column` value of the model must exist in `field` of `to`.",
      "properties": {
        "column": {
          "description": "Column of the model that holds the key.",
          "title": "Column",
          "type": "string"
        },
        "field": {
          "description": "Column of the parent the key must match.",
          "title": "Field",
          "type": "string"
        },
        "to": {
          "$ref": "#/$defs/InputConfig",
          "description": "The parent: another model (ref) or a source."
        }
      },
      "required": [
        "column",
        "to",
        "field"
      ],
      "title": "RelationshipsCheck",
      "type": "object"
    },
    "RowCountCheck": {
      "additionalProperties": false,
      "properties": {
        "max": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "pattern": "^\\$\\{.+\\}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Max"
        },
        "min": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "pattern": "^\\$\\{.+\\}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Min"
        }
      },
      "title": "RowCountCheck",
      "type": "object"
    },
    "UnitTestConfig": {
      "additionalProperties": false,
      "description": "A unit test: the model body run on given input rows, compared with expected rows.",
      "properties": {
        "expect": {
          "$ref": "#/$defs/GivenConfig",
          "description": "Expected output rows; only their columns are compared, in any order."
        },
        "given": {
          "description": "Rows for every input alias of the model.",
          "patternProperties": {
            "^[A-Za-z_][A-Za-z0-9_]*$": {
              "$ref": "#/$defs/GivenConfig"
            }
          },
          "title": "Given",
          "type": "object"
        },
        "name": {
          "description": "Name of the case, unique per model.",
          "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "name",
        "expect"
      ],
      "title": "UnitTestConfig",
      "type": "object"
    },
    "WriteConfig": {
      "additionalProperties": false,
      "properties": {
        "deletes": {
          "anyOf": [
            {
              "$ref": "#/$defs/DeletesConfig"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "How deleted rows are recognised and applied."
        },
        "on_schema_change": {
          "default": "fail",
          "description": "Policy when the output schema differs from the target.",
          "enum": [
            "fail",
            "ignore",
            "append_new_columns",
            "sync_all_columns"
          ],
          "title": "On Schema Change",
          "type": "string"
        },
        "options": {
          "additionalProperties": true,
          "description": "Engine-specific write options.",
          "title": "Options",
          "type": "object"
        },
        "strategy": {
          "anyOf": [
            {
              "enum": [
                "append",
                "overwrite",
                "replace_partitions",
                "merge",
                "scd2"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "How rows reach the target.",
          "title": "Strategy"
        },
        "table_properties": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Properties set on the target table.",
          "title": "Table Properties",
          "type": "object"
        },
        "tracked_columns": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Columns whose change opens a new scd2 row; default all.",
          "title": "Tracked Columns"
        },
        "unique_key": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Columns that identify a row (merge and scd2).",
          "title": "Unique Key"
        },
        "update_condition": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Extra condition for updating a matched row (merge).",
          "title": "Update Condition"
        }
      },
      "title": "WriteConfig",
      "type": "object"
    }
  },
  "$id": "https://emanuel-luis.github.io/pipeloom/latest/schema/v1/properties.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "A properties file: any `*.yml` or `*.yaml` under model_paths.",
  "properties": {
    "models": {
      "description": "Properties entries, one per model.",
      "items": {
        "$ref": "#/$defs/PropertiesEntry"
      },
      "title": "Models",
      "type": "array"
    }
  },
  "title": "pipeloom properties file",
  "type": "object"
}
