{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aidemos-com/json-schema/aidemos-com-seo-request-schema.json",
  "title": "SeoRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aidemos-com-utilities-api-openapi.yml#/components/schemas/SeoRequest",
  "properties": {
    "page_type": {
      "type": "string",
      "enum": [
        "ranking",
        "use-case",
        "tool"
      ],
      "title": "Page Type",
      "default": "tool"
    },
    "title": {
      "type": "string",
      "title": "Title",
      "description": "Page title / use-case / tool name — the primary signal"
    },
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content",
      "description": "Page content (supporting signal; trimmed)"
    },
    "existing": {
      "anyOf": [
        {
          "$ref": "#/$defs/SeoExisting"
        },
        {
          "type": "null"
        }
      ],
      "description": "Existing SEO on the page (may be changed)"
    },
    "feedback": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Feedback",
      "description": "Admin feedback to fold into a regeneration"
    },
    "context": {
      "anyOf": [
        {
          "$ref": "#/$defs/SeoContext"
        },
        {
          "type": "null"
        }
      ],
      "description": "category, monthYear"
    }
  },
  "type": "object",
  "required": [
    "title"
  ],
  "$defs": {
    "SeoContext": {
      "properties": {
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Category"
        },
        "monthYear": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Monthyear"
        }
      },
      "type": "object",
      "title": "SeoContext"
    },
    "SeoExisting": {
      "properties": {
        "slug": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Slug"
        },
        "seoTitle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Seotitle"
        },
        "seoDescription": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Seodescription"
        }
      },
      "type": "object",
      "title": "SeoExisting"
    }
  }
}