{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/placementapi-com/json-schema/placementapi-com-anchor-plan-schema.json",
  "title": "AnchorPlan",
  "description": "Anchor text is a DISTRIBUTION, not a string. Many links with one exact-match anchor is the classic over-optimisation footprint. Mix branded, topical, generic and naked_url anchors.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/placementapi-com-account-api-openapi.yml#/components/schemas/AnchorPlan",
  "type": "object",
  "required": [
    "anchors"
  ],
  "properties": {
    "anchors": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "text",
          "type"
        ],
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "type": {
            "type": "string",
            "enum": [
              "branded",
              "naked_url",
              "generic",
              "topical",
              "partial_match",
              "exact_match"
            ]
          },
          "weight": {
            "type": "number",
            "exclusiveMinimum": 0,
            "default": 1,
            "description": "Relative weight; normalised across the plan."
          }
        }
      }
    }
  }
}