PolicyValidationResponse

Response from policy validation. - `valid`: True if no blocking errors were found - `errors`: List of blocking errors (prevent policy from being applied) - `warnings`: List of non-blocking warnings (policy can still be applied)

CompanyCloudHostingVPSIndia

Properties

Name Type Description
errors array List of blocking validation errors.
valid boolean True if the policy configuration is valid.
warnings array List of non-blocking validation warnings.
View JSON Schema on GitHub

JSON Schema

bookmyhost-policy-validation-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-policy-validation-response-schema.json",
  "title": "PolicyValidationResponse",
  "description": "Response from policy validation.\n\n- `valid`: True if no blocking errors were found\n- `errors`: List of blocking errors (prevent policy from being applied)\n- `warnings`: List of non-blocking warnings (policy can still be applied)",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-policies-api-openapi.yml#/components/schemas/PolicyValidationResponse",
  "additionalProperties": false,
  "properties": {
    "errors": {
      "description": "List of blocking validation errors.",
      "items": {
        "$ref": "#/$defs/PolicyValidationError"
      },
      "title": "Errors",
      "type": "array"
    },
    "valid": {
      "description": "True if the policy configuration is valid.",
      "title": "Valid",
      "type": "boolean"
    },
    "warnings": {
      "description": "List of non-blocking validation warnings.",
      "items": {
        "$ref": "#/$defs/PolicyValidationError"
      },
      "title": "Warnings",
      "type": "array"
    }
  },
  "required": [
    "valid"
  ],
  "type": "object",
  "$defs": {
    "PolicyValidationError": {
      "additionalProperties": false,
      "description": "Represents a validation error or warning for a policy.",
      "properties": {
        "error_type": {
          "$ref": "#/$defs/PolicyValidationErrorType",
          "description": "Type of validation error."
        },
        "field": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Specific field that caused the error (e.g., 'guardrails.add', 'scope.teams').",
          "title": "Field"
        },
        "message": {
          "description": "Human-readable error message.",
          "title": "Message",
          "type": "string"
        },
        "policy_name": {
          "description": "Name of the policy with the issue.",
          "title": "Policy Name",
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The invalid value that caused the error.",
          "title": "Value"
        }
      },
      "required": [
        "policy_name",
        "error_type",
        "message"
      ],
      "title": "PolicyValidationError",
      "type": "object"
    },
    "PolicyValidationErrorType": {
      "description": "Types of validation errors that can occur.",
      "enum": [
        "invalid_guardrail",
        "invalid_team",
        "invalid_key",
        "invalid_model",
        "invalid_inheritance",
        "circular_inheritance",
        "invalid_scope",
        "invalid_syntax"
      ],
      "title": "PolicyValidationErrorType",
      "type": "string"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/bookmyhost-policy-validation-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.