{
  "$defs": {
    "InputNote": {
      "additionalProperties": false,
      "description": "One finding about the input, in plain words. Never carries row values.",
      "properties": {
        "code": {
          "title": "Code",
          "type": "string"
        },
        "column": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Column"
        },
        "message": {
          "title": "Message",
          "type": "string"
        },
        "severity": {
          "enum": [
            "info",
            "warn",
            "exclude",
            "refuse"
          ],
          "title": "Severity",
          "type": "string"
        }
      },
      "required": [
        "code",
        "severity",
        "message"
      ],
      "title": "InputNote",
      "type": "object"
    }
  },
  "$id": "https://schemas.ump.dev/v1/input-report.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "The outcome of checking input against a workflow's contract. ``ok`` is false when a note refuses;\n``route`` is where the rerun goes (score, refit, or not available).",
  "properties": {
    "coerce": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Column to the contract dtype it is cast to.",
      "title": "Coerce",
      "type": "object"
    },
    "drop_columns": {
      "items": {
        "type": "string"
      },
      "title": "Drop Columns",
      "type": "array"
    },
    "exclude_levels": {
      "additionalProperties": {
        "items": {
          "type": "string"
        },
        "type": "array"
      },
      "description": "Column to the hashes of its new levels; rows at those levels are excluded.",
      "title": "Exclude Levels",
      "type": "object"
    },
    "exclude_nulls": {
      "description": "Structural columns (time, categorical dims, key) whose rows with no value are excluded.",
      "items": {
        "type": "string"
      },
      "title": "Exclude Nulls",
      "type": "array"
    },
    "mode": {
      "default": "score",
      "enum": [
        "score",
        "refit"
      ],
      "title": "Mode",
      "type": "string"
    },
    "notes": {
      "items": {
        "$ref": "#/$defs/InputNote"
      },
      "title": "Notes",
      "type": "array"
    },
    "ok": {
      "title": "Ok",
      "type": "boolean"
    },
    "route": {
      "default": "score",
      "enum": [
        "score",
        "refit",
        "not_available"
      ],
      "title": "Route",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ],
  "title": "InputReport",
  "type": "object"
}
