{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-data-set-request-schema.json",
  "title": "dataSetRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-aep-catalog-openapi.yml#/components/schemas/dataSetRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "A descriptive, human-readable name for this dataset."
    },
    "description": {
      "type": "string",
      "description": "A longer text description of the dataset."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "description": "Tags are values associated with a particular object, these are generally used by external systems for marking an object in a way that it understands. Normally tags are not used for internal Catalog business logic"
    },
    "enableErrorDiagnostics": {
      "type": "boolean",
      "description": "This field provides the ability to opt in to generating diagnostic files for the errors while ingesting data."
    },
    "observableSchema": {
      "type": "object",
      "properties": {},
      "description": "observableSchema stores a JSON Schema object that is a valid subset (including the null case) of the XDM model specified by `schemaRef`."
    },
    "basePath": {
      "type": "string",
      "description": "Fully qualified base path for all dataset files associated with this view. For views cached in a database (HBase or Cassandra), supply a templatized DSN.",
      "readOnly": true
    },
    "fileDescription": {
      "type": "object",
      "properties": {
        "format": {
          "$ref": "#/$defs/format"
        },
        "delimiters": {
          "type": "array",
          "description": "Characters used to separate fields.",
          "items": {
            "maxLength": 1,
            "type": "string"
          }
        },
        "quotes": {
          "type": "array",
          "description": "Quote characters used.",
          "items": {
            "type": "string"
          }
        },
        "escapes": {
          "type": "array",
          "description": "Escape characters used.",
          "items": {
            "type": "string"
          }
        },
        "nullMarkers": {
          "type": "array",
          "description": "Null markers used.",
          "items": {
            "type": "string"
          }
        },
        "header": {
          "type": "boolean",
          "description": ""
        },
        "charset": {
          "type": "string",
          "description": "The character encoding of the files.",
          "enum": [
            "US-ASCII",
            "UTF-8",
            "ISO-8859-1",
            ""
          ]
        }
      },
      "description": "Metadata describing the dataset files associated with this DatasetView."
    },
    "schema": {
      "type": "string",
      "description": "This is the uri for the XDM model"
    },
    "schemaRef": {
      "$ref": "#/$defs/schemaRef"
    },
    "dataSourceId": {
      "type": "integer",
      "description": "The ID of the datasource. It must be unique, along with its name."
    }
  },
  "$defs": {
    "format": {
      "type": "string",
      "description": "The file format for all dataSetFiles associated with this view. Required for CSV upload workflows, but optional in all other cases.",
      "enum": [
        "",
        "csv",
        "text",
        "parquet",
        "json",
        "sequencefile",
        "avro"
      ]
    },
    "schemaRef": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "ID contains full URL path for XDM schema."
        },
        "contentType": {
          "type": "string",
          "description": "contentType represents XDM schema version and type of schema."
        }
      },
      "description": "This is the full URL for XDM schema path. This field will be derived from schema field, if it is not present. This field will be used to annotate XDM schema version used in the dataSet or dataSetView."
    }
  }
}