{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://schema.humancellatlas.org/system/1.0.0/provenance",
  "description": "Provenance information added or generated at time of ingest.",
  "additionalProperties": false,
  "required": [
    "document_id",
    "submission_date"
  ],
  "title": "provenance",
  "type": "object",
  "properties": {
    "describedBy": {
      "description": "The URL reference to the schema.",
      "type": "string",
      "pattern": "^(http|https)://schema.(.*?)humancellatlas.org/system/(([0-9]{1,}.[0-9]{1,}.[0-9]{1,})|([a-zA-Z]*?))/provenance"
    },
    "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"
    },
    "submission_date": {
      "description": "When project was first submitted to database.",
      "type": "string",
      "format": "date-time"
    },
    "submitter_id": {
      "description": "ID of contact who first submitted project",
      "type": "string"
    },
    "update_date": {
      "description": "When project was last updated",
      "type": "string",
      "format": "date-time"
    },
    "updater_id": {
      "description": "ID of contact who last updated project",
      "type": "string"
    },
    "document_id": {
      "description": "Identifier for document.",
      "type": "string",
      "pattern": ".{8}-.{4}-.{4}-.{4}-.{12}",
      "comment": "This structure supports the current ingest API.  It may change in future."
    },
    "accession": {
      "description": "A unique accession for this entity, provided by the broker.",
      "type": "string"
    }
  }
}
