{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/praxikon-com/json-schema/praxikon-com-naleving-index-envelope-schema.json",
  "title": "NalevingIndexEnvelope",
  "description": "The monthly compliance index over the Dutch national algorithm register. A measurement of a public register, not an assessment of an organisation: it says what the register showed on the measurement date and nothing about whether any organisation complies.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/praxikon-com-openapi.json#/components/schemas/NalevingIndexEnvelope",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "meta",
    "measurements",
    "observations"
  ],
  "properties": {
    "meta": {
      "type": "object",
      "additionalProperties": true,
      "required": [
        "source",
        "definitions",
        "index_formula",
        "rounds_available",
        "filters",
        "unrecognised_filters"
      ],
      "properties": {
        "verified_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the newest round was laid against the register."
        },
        "source": {
          "type": "object",
          "additionalProperties": true,
          "description": "The public page of the index and the register the newest round was read from.",
          "properties": {
            "url": {
              "type": "string",
              "format": "uri"
            },
            "register_url": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            },
            "register_name": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "definitions": {
          "type": "array",
          "description": "What each of the five indicators counts, in both languages. Enough to recompute the index by hand.",
          "items": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "key": {
                "type": "string"
              },
              "label": {
                "type": "object",
                "additionalProperties": true
              },
              "counts": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "index_formula": {
          "type": "string",
          "description": "The formula in words. The index is an unweighted mean of the five indicator shares, expressed 0 to 100."
        },
        "delta_with_previous": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true,
          "description": "The difference with the previous round, or null when there is no previous round."
        },
        "rounds_available": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "filters": {
          "type": "object",
          "additionalProperties": true
        },
        "unrecognised_filters": {
          "type": "array",
          "description": "Filters that matched nothing. An unknown round leaves every round in the response, so an empty result cannot be misread as a round with no data.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "parameter",
              "value"
            ],
            "properties": {
              "parameter": {
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            }
          }
        },
        "empty_result_note": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "measurements": {
      "type": "array",
      "description": "One entry per measurement round, with the counted indicators and the resulting index.",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "observations": {
      "type": "array",
      "description": "Dated editorial observations about what the rounds show. Interpretation, not measurement.",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  }
}