{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cover-desk.pages.dev/open-cover/schemas/wording-result.json",
  "title": "Open Cover 0.1: wording-result",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "profile",
    "insurer",
    "query",
    "clauses"
  ],
  "properties": {
    "profile": {
      "type": "string",
      "enum": [
        "open-cover/0.1"
      ]
    },
    "insurer": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "query": {
      "type": "string",
      "minLength": 0,
      "maxLength": 120
    },
    "clauses": {
      "type": "array",
      "minItems": 0,
      "maxItems": 8,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "title",
          "text",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1200
          },
          "url": {
            "type": "string",
            "minLength": 8,
            "maxLength": 300
          }
        }
      }
    }
  }
}
