{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rampify-dev/json-schema/rampify-dev-routing-view-schema.json",
  "title": "RoutingView",
  "description": "Routing hints for automation (view=routing)",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rampify-dev-openapi.yml#/components/schemas/RoutingView",
  "type": "object",
  "properties": {
    "snapshot_id": {
      "type": "string",
      "format": "uuid"
    },
    "site_id": {
      "type": "string",
      "format": "uuid"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "routing_hints": {
      "type": "object",
      "description": "Boolean flags for n8n/Zapier routing",
      "properties": {
        "has_auto_fixable_meta": {
          "type": "boolean",
          "description": "Has fixable meta tag issues"
        },
        "has_auto_fixable_schema": {
          "type": "boolean",
          "description": "Has fixable schema issues"
        },
        "has_missing_og_images": {
          "type": "boolean",
          "description": "Pages missing OG images"
        },
        "has_indexing_issues": {
          "type": "boolean",
          "description": "Pages not indexed by Google"
        },
        "has_critical": {
          "type": "boolean",
          "description": "Has critical priority issues"
        },
        "has_high": {
          "type": "boolean",
          "description": "Has high priority issues"
        },
        "has_any_actions": {
          "type": "boolean",
          "description": "Has any actions at all"
        },
        "recommended_next_action": {
          "type": "string",
          "description": "AI recommendation",
          "enum": [
            "fix_critical",
            "fix_meta_tags",
            "add_schema",
            "submit_to_gsc",
            "review_actions"
          ]
        }
      }
    },
    "counts": {
      "type": "object",
      "properties": {
        "total_actions": {
          "type": "integer"
        },
        "total_affected_urls": {
          "type": "integer"
        },
        "auto_fixable": {
          "type": "integer"
        },
        "manual_review": {
          "type": "integer"
        },
        "by_priority": {
          "type": "object",
          "properties": {
            "critical": {
              "type": "integer"
            },
            "high": {
              "type": "integer"
            },
            "medium": {
              "type": "integer"
            },
            "low": {
              "type": "integer"
            }
          }
        }
      }
    },
    "effort_estimate": {
      "type": "object",
      "properties": {
        "total_hours": {
          "type": "string"
        },
        "quick_wins": {
          "type": "integer"
        },
        "medium_effort": {
          "type": "integer"
        },
        "high_effort": {
          "type": "integer"
        }
      }
    }
  }
}