{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-snapshot-dataset-details-schema.json",
  "title": "SnapshotDatasetDetails",
  "description": "Allows outputting the latest records paired with annotations and write them to object storage.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-datalabelingmanagement-api-openapi.yml#/components/schemas/SnapshotDatasetDetails",
  "properties": {
    "areAnnotationsIncluded": {
      "description": "Whether annotations are to be included in the export dataset digest.",
      "type": "boolean"
    },
    "areUnannotatedRecordsIncluded": {
      "description": "Whether to include records that have yet to be annotated in the export dataset digest.",
      "type": "boolean"
    },
    "exportDetails": {
      "$ref": "#/$defs/ObjectStorageSnapshotExportDetails"
    },
    "exportFormat": {
      "$ref": "#/$defs/ExportFormat"
    }
  },
  "required": [
    "areAnnotationsIncluded",
    "areUnannotatedRecordsIncluded",
    "exportDetails"
  ],
  "type": "object",
  "$defs": {
    "ExportFormat": {
      "description": "Specifies the export format to be used for exporting snapshot.",
      "properties": {
        "name": {
          "description": "Name of export format.",
          "enum": [
            "JSONL",
            "JSONL_CONSOLIDATED",
            "CONLL",
            "SPACY",
            "COCO",
            "YOLO",
            "PASCAL_VOC",
            "JSONL_COMPACT_PLUS_CONTENT"
          ],
          "type": "string"
        },
        "version": {
          "description": "Version of export format.",
          "enum": [
            "V2003",
            "V5"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "ObjectStorageSnapshotExportDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/SnapshotExportDetails"
        },
        {
          "properties": {
            "bucket": {
              "description": "Bucket name",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "namespace": {
              "description": "Bucket namespace name",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            "prefix": {
              "description": "Object path prefix to put snapshot file(s)",
              "maxLength": 1024,
              "type": "string"
            }
          },
          "required": [
            "namespace",
            "bucket"
          ],
          "type": "object"
        }
      ],
      "description": "Specifies where to output the export in Object Storage."
    },
    "SnapshotExportDetails": {
      "description": "Specifies where to output the export.",
      "properties": {
        "exportType": {
          "description": "The target destination for the snapshot.  Using OBJECT_STORAGE means the snapshot will be written to Object Storage.",
          "enum": [
            "OBJECT_STORAGE"
          ],
          "type": "string"
        }
      },
      "required": [
        "exportType"
      ],
      "type": "object"
    }
  }
}