{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/programmes-net/json-schema/programmes-net-json-schema-validator-validate-schema.json",
  "title": "json-schema-validator.validate",
  "description": "Validate JSON data against a JSON Schema.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/programmes-net-formatters-validators-api-openapi.yml#/components/schemas/json-schema-validator.validate",
  "type": "object",
  "properties": {
    "operation": {
      "const": "validate"
    },
    "input": {
      "type": "string",
      "description": "The JSON data (instance) to validate.",
      "maxLength": 8192
    },
    "options": {
      "type": "object",
      "properties": {
        "schema": {
          "type": "string",
          "description": "The JSON Schema, as JSON text. Self-contained: $ref may point inside it ($defs, definitions) but remote schemas are not fetched.",
          "maxLength": 16384
        },
        "draft": {
          "type": "string",
          "description": "Schema draft. \"auto\" reads $schema and falls back to 2020-12.",
          "enum": [
            "auto",
            "2020-12",
            "2019-09",
            "7",
            "4"
          ],
          "default": "auto"
        }
      },
      "required": [
        "schema"
      ]
    }
  },
  "required": [
    "operation",
    "options"
  ]
}