{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-create-dataset-details-schema.json",
  "title": "CreateDatasetDetails",
  "description": "Parameters needed to create a new Dataset. A Dataset allows a user to describe the data source that provides the Records and how Annotations should be applied to the Records.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-datalabelingmanagement-api-openapi.yml#/components/schemas/CreateDatasetDetails",
  "properties": {
    "annotationFormat": {
      "description": "The annotation format name required for labeling records.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "compartmentId": {
      "description": "The OCID of the compartment of the resource.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "datasetFormatDetails": {
      "$ref": "#/$defs/DatasetFormatDetails"
    },
    "datasetSourceDetails": {
      "$ref": "#/$defs/DatasetSourceDetails"
    },
    "definedTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string, integer, and boolean types are supported.\n",
          "type": "object"
        },
        "description": "A key-value pair representing predefined tags' keys and values scoped to a namespace.\nFor example: `{\"bar-key\": \"value\"}`\n",
        "type": "object"
      },
      "description": "The defined tags for this resource. Each key is predefined and scoped to a namespace.\nFor example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`\n",
      "type": "object"
    },
    "description": {
      "description": "A user provided description of the dataset",
      "maxLength": 1024,
      "type": "string",
      "x-default-description": "null"
    },
    "displayName": {
      "description": "A user-friendly display name for the resource.",
      "maxLength": 255,
      "type": "string",
      "x-default-description": "dataset-<currentTimestampUTC>"
    },
    "freeformTags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only.\nFor example: `{\"bar-key\": \"value\"}`\n",
      "type": "object"
    },
    "initialRecordGenerationConfiguration": {
      "$ref": "#/$defs/InitialRecordGenerationConfiguration"
    },
    "labelSet": {
      "$ref": "#/$defs/LabelSet"
    },
    "labelingInstructions": {
      "description": "The labeling instructions for human labelers in rich text format",
      "maxLength": 32767,
      "minLength": 0,
      "type": "string"
    }
  },
  "required": [
    "compartmentId",
    "annotationFormat",
    "datasetSourceDetails",
    "datasetFormatDetails",
    "labelSet"
  ],
  "type": "object",
  "$defs": {
    "DatasetFormatDetails": {
      "description": "It specifies how to process the data. Supported formats include DOCUMENT, IMAGE, and TEXT.",
      "properties": {
        "formatType": {
          "description": "The format type. DOCUMENT format is for record contents that are PDFs or TIFFs. IMAGE format is for record contents that are JPEGs or PNGs. TEXT format is for record contents that are TXT files.",
          "enum": [
            "DOCUMENT",
            "IMAGE",
            "TEXT"
          ],
          "type": "string"
        }
      },
      "required": [
        "formatType"
      ]
    },
    "DatasetSourceDetails": {
      "description": "This allows the customer to specify the source of the dataset.",
      "properties": {
        "sourceType": {
          "description": "The source type. OBJECT_STORAGE allows the user to describe where in object storage the dataset is.",
          "enum": [
            "OBJECT_STORAGE"
          ],
          "type": "string"
        }
      },
      "required": [
        "sourceType"
      ],
      "type": "object"
    },
    "InitialRecordGenerationConfiguration": {
      "description": "The initial generate records configuration. It generates records from the dataset's source.",
      "properties": {
        "limit": {
          "description": "The maximum number of records to generate.",
          "format": "integer",
          "type": "number"
        }
      },
      "type": "object"
    },
    "Label": {
      "description": "It represents a label.",
      "properties": {
        "name": {
          "description": "An unique name for a label within its dataset.",
          "maxLength": 255,
          "type": "string"
        }
      },
      "type": "object"
    },
    "LabelSet": {
      "description": "An ordered collection of labels that are unique by name.\n",
      "properties": {
        "items": {
          "description": "An ordered collection of labels that are unique by name.",
          "items": {
            "$ref": "#/$defs/Label"
          },
          "maxItems": 250,
          "minItems": 0,
          "type": "array"
        }
      },
      "type": "object"
    }
  }
}