{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://journalofbiohacking.com/data/evidence/v1/null-results.schema.json",
  "title": "Journal of Biohacking evidence dataset: null results",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "$schema",
    "dataset",
    "version",
    "releasedOn",
    "licence",
    "count",
    "items"
  ],
  "properties": {
    "$schema": {
      "type": "string"
    },
    "dataset": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "version": {
      "type": "string",
      "pattern": "^\\d+\\.\\d+\\.\\d+$"
    },
    "releasedOn": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}(-\\d{2})?$"
    },
    "publisher": {
      "type": "string"
    },
    "author": {
      "type": "string"
    },
    "licence": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "name",
        "url"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "pattern": "^https://"
        }
      }
    },
    "notice": {
      "type": "string"
    },
    "documentation": {
      "type": "string",
      "pattern": "^https://"
    },
    "count": {
      "type": "integer",
      "minimum": 0
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "claim",
          "category",
          "categoryLabel",
          "preclinicalOrigin",
          "decisiveResult",
          "failureMode",
          "pmid",
          "citation",
          "page"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "claim": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "categoryLabel": {
            "type": [
              "string",
              "null"
            ]
          },
          "preclinicalOrigin": {
            "type": "string"
          },
          "decisiveResult": {
            "type": "string"
          },
          "failureMode": {
            "type": "string"
          },
          "pmid": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d+$"
          },
          "citation": {
            "type": [
              "string",
              "null"
            ]
          },
          "page": {
            "type": "string",
            "pattern": "^https://"
          }
        }
      }
    }
  }
}
