{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scrubmytext-com/json-schema/scrubmytext-com-quality-target-query-schema.json",
  "title": "QualityTargetQuery",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scrubmytext-com-openapi.json#/components/schemas/QualityTargetQuery",
  "type": "object",
  "properties": {
    "target_type": {
      "type": "string",
      "enum": [
        "mcp_server",
        "rest_api"
      ]
    },
    "provider_domain": {
      "type": "string",
      "maxLength": 253
    },
    "canonical_endpoint": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048
    },
    "version": {
      "type": "string",
      "maxLength": 120
    },
    "interface_digest": {
      "$ref": "#/$defs/Sha256Digest"
    }
  },
  "required": [
    "target_type",
    "provider_domain",
    "canonical_endpoint",
    "version"
  ],
  "additionalProperties": false,
  "$defs": {
    "Sha256Digest": {
      "type": "string",
      "pattern": "^(?:sha256:)?[a-f0-9]{64}$",
      "description": "A lowercase SHA-256 digest, with an optional sha256: prefix."
    }
  }
}