{
  "id": "list.json",
  "$schema": "http://json-schema.org/draft-04/schema",
  "title": "HTML list",
  "description": "An ordered or unordered list of elements. It can be annotated with measurements data like the number of items",
  "type": [
    "object"
  ],
  "properties": {
    "type": {
      "description": "Block type",
      "example": "text",
      "type": "string",
      "enum": [
        "list",
        "ul",
        "ol"
      ]
    },
    "html": {
      "description": "HTML content of the block",
      "example": "<ul><li>Hello world<ul><li>Foo</li></ul></li><li>Foo bar</li></ul>",
      "type": "string",
      "minLength": 7
    },
    "items": {
      "description": "The measured number of items on the list",
      "type": "integer",
      "example": 3
    }
  },
  "required": [
    "type",
    "html"
  ]
}