{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frihet-io/json-schema/frihet-io-einvoice-validation-issue-schema.json",
  "title": "EInvoiceValidationIssue",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frihet-io-e-invoicing-api-openapi.yml#/components/schemas/EInvoiceValidationIssue",
  "type": "object",
  "required": [
    "severity",
    "ruleId",
    "message"
  ],
  "properties": {
    "severity": {
      "type": "string",
      "enum": [
        "error",
        "warning",
        "info"
      ]
    },
    "ruleId": {
      "type": "string",
      "description": "EN 16931 or format rule identifier"
    },
    "message": {
      "type": "string",
      "description": "Rule message in English"
    },
    "i18nKey": {
      "type": "string",
      "description": "Translation key for the message in the Frihet app, when one exists"
    }
  }
}