{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kentekenkompas-nl/json-schema/kentekenkompas-nl-direct-answer-schema.json",
  "title": "DirectAnswer",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kentekenkompas-nl-openapi.yml#/components/schemas/DirectAnswer",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "answerId",
    "question",
    "intents",
    "answer",
    "evidenceIds",
    "sourceIds",
    "classification",
    "freshness",
    "limitations",
    "citationUrl"
  ],
  "properties": {
    "answerId": {
      "type": "string"
    },
    "question": {
      "type": "string"
    },
    "intents": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "answer": {
      "type": "string"
    },
    "modelKey": {
      "type": "string"
    },
    "topic": {
      "type": "string"
    },
    "evidenceIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "classification": {
      "$ref": "#/$defs/Classification"
    },
    "freshness": {
      "$ref": "#/$defs/Freshness"
    },
    "limitations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Limitation"
      }
    },
    "citationUrl": {
      "type": "string",
      "format": "uri"
    }
  },
  "$defs": {
    "Classification": {
      "type": "string",
      "enum": [
        "OFFICIAL",
        "DERIVED",
        "EDITORIAL"
      ],
      "description": "OFFICIAL: directly stated by the identified official/primary source. DERIVED: reproducibly derived by KentekenKompas from source data. EDITORIAL: KentekenKompas interpretation or guidance; never an official RDW fact."
    },
    "Freshness": {
      "type": "object",
      "additionalProperties": false,
      "description": "Independent content dates. generatedAt only describes bundle generation and never substitutes for dataAsOf, sourceCheckedAt or editorialReviewedAt.",
      "properties": {
        "dataAsOf": {
          "type": "string",
          "format": "date",
          "description": "Date represented by the underlying data."
        },
        "sourceCheckedAt": {
          "type": "string",
          "format": "date",
          "description": "Date the source was checked."
        },
        "editorialReviewedAt": {
          "type": "string",
          "format": "date",
          "description": "Date editorial interpretation was reviewed."
        },
        "generatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Bundle generation timestamp; not proof of source actuality."
        }
      }
    },
    "Limitation": {
      "type": "string",
      "minLength": 1,
      "description": "Explicit constraint on scope, applicability, freshness or interpretation."
    }
  }
}