{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mammoth-io/json-schema/mammoth-io-dataview-info-schema.json",
  "title": "DataviewInfo",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mammoth-io-openapi.json#/components/schemas/DataviewInfo",
  "properties": {
    "id": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Dataview ID"
    },
    "name": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "maxLength": 300,
      "description": "Dataview Name"
    },
    "ds_id": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Dataset ID"
    },
    "display_properties": {
      "oneOf": [
        {
          "$ref": "#/$defs/DisplayPropertiesResponse"
        },
        {
          "type": "null"
        }
      ],
      "description": "Display Properties"
    },
    "user_display_properties": {
      "oneOf": [
        {
          "additionalProperties": {},
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "description": "User Display Properties"
    },
    "data_url": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "URL for Dataview Data"
    },
    "metadata": {
      "oneOf": [
        {
          "items": {
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "Metadata Dictionary. Each column also carries a `lineage` object: `{origin: 'SOURCE'|'TASK', task_id: int|null, task_type: str|null}`. `SOURCE` columns come from the original data (task_id/task_type null); `TASK` columns are attributed to the pipeline task that introduced them."
    },
    "sys_cols": {
      "oneOf": [
        {
          "items": {
            "additionalProperties": {},
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "System Columns Metadata Dictionary"
    },
    "status": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Status"
    },
    "pipeline_status": {
      "type": [
        "null",
        "string"
      ],
      "enum": [
        "running",
        "submitted",
        "ready",
        "error",
        "modifying",
        "modified",
        "staged",
        "analysing",
        null
      ],
      "description": "Pipeline Status"
    },
    "is_pipeline_running": {
      "oneOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Is Pipeline Running"
    },
    "draft_mode": {
      "type": [
        "null",
        "string"
      ],
      "enum": [
        "clean",
        "dirty",
        "off",
        null
      ],
      "description": "Draft Mode Status"
    },
    "row_count": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Number of rows in Dataview"
    },
    "column_count": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Number of columns in Dataview"
    },
    "pipeline_autorun_enabled": {
      "oneOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Is Pipeline Autorun Enabled"
    },
    "is_dataview_data_in_sync": {
      "oneOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Is Dataview Data in Sync"
    },
    "taskwise_info": {
      "oneOf": [
        {
          "additionalProperties": {
            "additionalProperties": {},
            "type": "object"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "description": "Taskwise Information Dictionary"
    },
    "original_data_updated": {
      "oneOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Original Data Updated"
    },
    "dependencies_info": {
      "oneOf": [
        {
          "additionalProperties": {
            "type": "object"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "description": "Dependencies related to other dataviews"
    },
    "created_at": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "description": "Date and time when the Dataview was created in ISO 8601 format"
    },
    "updated_at": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "description": "Date and time when the Dataview was updated in ISO 8601 format"
    },
    "data_updated_at": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "description": "Date and time when the Dataview data was last updated in ISO 8601 format"
    },
    "data_quality_enabled": {
      "type": "boolean",
      "description": "Is Data Quality Checks Enabled",
      "default": false
    }
  },
  "type": "object",
  "required": [],
  "$defs": {
    "DisplayPropertiesResponse": {
      "properties": {
        "SORT": {
          "type": "array",
          "description": "Sort is a list of tuples. Tuples are of the form (column_name, sort_order) where sort_order can be 'asc' or 'desc', limited to three"
        },
        "FORMAT_INFO": {
          "oneOf": [
            {
              "additionalProperties": {
                "oneOf": [
                  {
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "Format Info"
        },
        "COLUMN_WIDTHS": {
          "oneOf": [
            {
              "additionalProperties": {
                "type": "integer"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "Column Widths for each column"
        },
        "HIDDEN_COLUMNS": {
          "oneOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "description": "List of Hidden Columns"
        },
        "COLUMN_NAMES": {
          "oneOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "Column Names to be displayed"
        },
        "COLUMN_ORDER": {
          "oneOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "Column Order"
        },
        "REVERT_COLUMN_NAMES": {
          "oneOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "description": "Remove rename property from given column names"
        },
        "EXPLORE_PANEL": {
          "oneOf": [
            {
              "additionalProperties": {},
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "Explore Panel"
        },
        "ASK_EXPLORE_PANEL": {
          "oneOf": [
            {
              "additionalProperties": {},
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "The person's explore panel in Ask ({cards, height}), kept apart from Build's EXPLORE_PANEL on the same view"
        },
        "WHITESPACE_HIGHLIGHTED_COLUMNS_IN_GRID": {
          "oneOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "description": "List of columns to whitespace-highlight in the grid view"
        },
        "WHITESPACE_HIGHLIGHTED_COLUMNS_IN_EXPLORE_SECTION": {
          "oneOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "description": "List of columns to whitespace-highlight in the explore section"
        },
        "EXPLORE_SUGGESTIONS": {
          "oneOf": [
            {
              "items": {
                "additionalProperties": {},
                "type": "object"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "description": "Columns Explore opens on the first time, as the profiler picked them"
        },
        "EXPLORE_COMPARE_SUGGESTION": {
          "oneOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "Two number columns Explore opens on as a bubble chart, ahead of the cards"
        }
      },
      "type": "object",
      "required": [
        "SORT"
      ],
      "title": "DisplayPropertiesResponse"
    }
  }
}