{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-document-validation-result-schema.json",
  "title": "DocumentValidationResult",
  "description": "Document validation result",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-validatedocument-api-openapi.yml#/components/schemas/DocumentValidationResult",
  "type": "object",
  "properties": {
    "DocumentIsValid": {
      "description": "True if the document is valid and has no errors, false otherwise",
      "type": "boolean"
    },
    "PasswordProtected": {
      "description": "True if the document is password protected, false otherwise",
      "type": "boolean"
    },
    "ErrorCount": {
      "format": "int32",
      "description": "Number of validation errors found in the document",
      "type": "integer"
    },
    "WarningCount": {
      "format": "int32",
      "description": "Number of validation warnings found in the document",
      "type": "integer"
    },
    "ErrorsAndWarnings": {
      "description": "Details of errors and warnings found",
      "type": "array",
      "items": {
        "$ref": "#/$defs/DocumentValidationError"
      }
    }
  },
  "$defs": {
    "DocumentValidationError": {
      "description": "Validation error found in document",
      "type": "object",
      "properties": {
        "Description": {
          "description": "Description of the error",
          "type": "string"
        },
        "Path": {
          "description": "XPath to the error",
          "type": "string"
        },
        "Uri": {
          "description": "URI of the part in question",
          "type": "string"
        },
        "IsError": {
          "description": "True if this is an error, false otherwise",
          "type": "boolean"
        }
      }
    }
  }
}