{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "OpenAgentWorks validation_report",
  "type": "object",
  "properties": {
    "tool": {
      "type": "string",
      "minLength": 1
    },
    "tool_version": {
      "type": "string",
      "minLength": 1
    },
    "package_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "manifest_sha256": {
      "type": [
        "string",
        "null"
      ]
    },
    "valid": {
      "type": "boolean"
    },
    "checks": {
      "type": "integer",
      "minimum": 0
    },
    "diagnostics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "minLength": 1
          },
          "message": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "code",
          "message"
        ],
        "additionalProperties": false
      }
    },
    "claims": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "nonclaims": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "scope": {
      "enum": [
        "standard",
        "declared_profile"
      ]
    },
    "profile": {
      "type": "object",
      "properties": {
        "catalog_kinds": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "records": {
          "type": "integer",
          "minimum": 0
        },
        "features_not_interpreted": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "business_validator_not_run": {
          "type": [
            "string",
            "null"
          ]
        },
        "native_resources_not_checked": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "producer_validation_evidence": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string",
                "minLength": 1
              },
              "sha256": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              }
            },
            "required": [
              "path",
              "sha256"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "catalog_kinds",
        "records",
        "features_not_interpreted",
        "business_validator_not_run",
        "native_resources_not_checked",
        "producer_validation_evidence"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "tool",
    "tool_version",
    "package_id",
    "manifest_sha256",
    "valid",
    "checks",
    "diagnostics",
    "claims",
    "nonclaims"
  ],
  "additionalProperties": false
}
