{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://metkagram.github.io/api/v1/schemas/provenance.json",
  "title": "Metkagram Provenance",
  "type": "object",
  "required": [
    "source",
    "source_url",
    "creator",
    "creator_url",
    "license",
    "attribution_required",
    "attribution_text",
    "dataset_version",
    "release_date",
    "canonical_url"
  ],
  "properties": {
    "source": {
      "type": "string"
    },
    "source_url": {
      "type": "string",
      "format": "uri"
    },
    "source_repository": {
      "type": "string",
      "format": "uri"
    },
    "creator": {
      "type": "string"
    },
    "creator_url": {
      "type": "string",
      "format": "uri"
    },
    "maintainer": {
      "type": "string"
    },
    "maintainer_url": {
      "type": "string",
      "format": "uri"
    },
    "license": {
      "type": "string"
    },
    "license_url": {
      "type": "string",
      "format": "uri"
    },
    "attribution_required": {
      "type": "boolean"
    },
    "attribution_text": {
      "type": "string"
    },
    "attribution_html": {
      "type": "string"
    },
    "dataset_version": {
      "type": "string"
    },
    "release_date": {
      "type": "string",
      "format": "date"
    },
    "canonical_url": {
      "type": "string",
      "format": "uri"
    },
    "record_type": {
      "type": "string"
    },
    "record_id": {
      "type": "string"
    },
    "content_hash": {
      "type": "string"
    }
  }
}
