{
  "$id": "https://groups.qft.org/data/source.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "authors": {
      "default": [],
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "kind": {
      "type": "string",
      "enum": [
        "book",
        "paper",
        "lecture-notes",
        "documentation",
        "database"
      ]
    },
    "locatorHint": {
      "type": "string",
      "minLength": 1
    },
    "licenseNote": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "id",
    "title",
    "authors",
    "url",
    "kind",
    "licenseNote"
  ],
  "additionalProperties": false
}
