{
  "$id": "https://opendatafabric.org/schemas/datasets/v1alpha1/DataSlice",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Describes a slice of data added to a dataset or produced via transformation",
  "type": "object",
  "required": [
    "logicalHash",
    "physicalHash",
    "offsetInterval",
    "size"
  ],
  "properties": {
    "logicalHash": {
      "type": "string",
      "format": "multihash",
      "description": "Logical hash sum of the data in this slice."
    },
    "physicalHash": {
      "type": "string",
      "format": "multihash",
      "description": "Hash sum of the data part file."
    },
    "offsetInterval": {
      "$ref": "https://opendatafabric.org/schemas/datasets/v1alpha1/OffsetInterval",
      "description": "Data slice produced by the transaction.",
      "unevaluatedProperties": false
    },
    "size": {
      "type": "integer",
      "format": "uint64",
      "description": "Size of data file in bytes."
    }
  }
}
