{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "hpp-000.schema.json",
  "title": "HPP charter document",
  "type": "object",
  "required": [
    "id",
    "version",
    "declaration",
    "principles"
  ],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^HPP-\\d{3}$"
    },
    "title": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "date": {
      "type": "string"
    },
    "license": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "declaration": {
      "type": "string"
    },
    "principles": {
      "type": "array",
      "minItems": 10,
      "maxItems": 10,
      "items": {
        "type": "object",
        "required": [
          "id",
          "number",
          "text"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "number": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10
          },
          "text": {
            "type": "string"
          },
          "related_hpp001_sections": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      }
    },
    "interpretation_note": {
      "type": "string"
    },
    "supporting_documents": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
