{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schema.humancellatlas.org/core/file/6.1.1/file_core",
  "description": "Information about a file produced from any process.",
  "additionalProperties": false,
  "required": [
    "file_name",
    "format"
  ],
  "title": "File core",
  "name": "file_core",
  "type": "object",
  "properties": {
    "describedBy": {
      "description": "The URL reference to the schema.",
      "type": "string",
      "pattern": "^(http|https)://schema.(.*?)humancellatlas.org/core/file/(([0-9]{1,}.[0-9]{1,}.[0-9]{1,})|([a-zA-Z]*?))/file_core"
    },
    "schema_version": {
      "description": "The version number of the schema in major.minor.patch format.",
      "type": "string",
      "pattern": "^[0-9]{1,}.[0-9]{1,}.[0-9]{1,}$",
      "example": "4.6.1"
    },
    "file_name": {
      "description": "The name of the file.",
      "type": "string",
      "user_friendly": "File name",
      "guidelines": "Include the file extension in the file name.",
      "example": "R1.fastq.gz; codebook.json"
    },
    "format": {
      "description": "The format of the file.",
      "type": "string",
      "user_friendly": "File format",
      "guidelines": "Indicate the full file extension including compression extensions.",
      "example": "fastq.gz; tif"
    },
    "content_description": {
      "description": "General description of the contents of the file.",
      "type": "array",
      "user_friendly": "Content description",
      "items": {
        "type": "object",
        "$ref": "https://schema.humancellatlas.org/module/ontology/1.0.1/file_content_ontology"
      }
    },
    "checksum": {
      "description": "MD5 checksum of the file.",
      "type": "string",
      "user_friendly": "Checksum",
      "example": "e09a986c2e630130b1849d4bf9a94c06"
    }
  }
}
