{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/makespdf-com/json-schema/makespdf-com-validation-result-schema.json",
  "title": "ValidationResult",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/makespdf-com-openapi.json#/components/schemas/ValidationResult",
  "type": "object",
  "required": [
    "valid",
    "issues",
    "summary"
  ],
  "properties": {
    "valid": {
      "type": "boolean",
      "description": "True when there are no error-severity issues."
    },
    "issues": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ValidationIssue"
      }
    },
    "summary": {
      "type": "object",
      "required": [
        "errors",
        "warnings"
      ],
      "properties": {
        "errors": {
          "type": "integer"
        },
        "warnings": {
          "type": "integer"
        }
      }
    }
  },
  "$defs": {
    "ValidationIssue": {
      "type": "object",
      "required": [
        "severity",
        "message"
      ],
      "properties": {
        "severity": {
          "type": "string",
          "enum": [
            "error",
            "warning"
          ]
        },
        "message": {
          "type": "string"
        },
        "path": {
          "type": "string",
          "description": "Location in the document tree."
        },
        "rule": {
          "type": "string",
          "description": "Rule identifier, e.g. a PDF/UA check."
        }
      }
    }
  }
}