{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/dtool-dataset-metadata/versions/v1.0.json",
  "title": "DToolDataset",
  "description": "Schema for metadata attached to a dtool dataset",
  "x-lintel": {
    "source": "https://www.schemastore.org/dtool-dataset-metadata-1.0.json",
    "sourceSha256": "2c703ab409c8f8f150f905e1e653a4cb42d5bdb0c33dad4d1144dd515777ca2e",
    "fileMatch": [
      "dtool-dataset.yml",
      "dtool-dataset.yaml",
      "dtool-dataset.json"
    ],
    "parsers": [
      "json",
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "uuid": {
      "type": "string",
      "format": "uuid"
    },
    "base_uri": {
      "type": "string"
    },
    "uri": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "readme": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "additionalProperties": true
        }
      ]
    },
    "manifest": {
      "type": "object",
      "properties": {
        "items": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "hash": {
                "type": "string"
              },
              "relpath": {
                "type": "string"
              },
              "size_in_bytes": {
                "type": "integer"
              },
              "utc_timestamp": {
                "type": "number"
              }
            }
          }
        },
        "hash_function": {
          "type": "string"
        },
        "dtoolcore_version": {
          "type": "string"
        }
      }
    },
    "creator_username": {
      "type": "string"
    },
    "frozen_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ]
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ]
    },
    "annotations": {
      "type": "object"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "number_of_items": {
      "type": "integer"
    },
    "size_in_bytes": {
      "type": "integer"
    }
  }
}
