{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://codedread.com/kthoom/reading-lists/jrl-schema.json",
  "type": "object",
  "properties": {
    "baseURI": {
      "description": "An optional absolute URI to use for URI references",
      "type": "string"
    },
    "items": {
      "description": "The list of items in the reading list.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "description": "The type of the item in the reading list.  Only 'book' is supported",
            "type": "string",
            "pattern": "book"
          },
          "uri": {
            "description": "The absolute or relative URI of the item in the reading list.",
            "type": "string",
            "format": "uri-reference"
          },
          "name": {
            "description": "An optional readable name for the item in the reading list.",
            "type": "string"
          }
        },
        "required": ["type", "uri"]
      }
    }
  },
  "required": ["items"]
}