{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frase-io/json-schema/frase-io-requested-ai-comment-schema.json",
  "title": "RequestedAiComment",
  "description": "A single AI suggestion comment created by `POST /content/{id}/ai-comments`. Use `id` with the `apply` endpoint or with `PATCH /comments/{id}`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frase-io-comments-api-openapi.yml#/components/schemas/RequestedAiComment",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "category": {
      "type": "string",
      "enum": [
        "structure",
        "clarity",
        "seo",
        "governance",
        "engagement",
        "authority"
      ]
    },
    "section": {
      "type": "string"
    },
    "quote": {
      "type": "string"
    },
    "suggestion": {
      "type": "string"
    },
    "suggested_text": {
      "type": [
        "string",
        "null"
      ]
    },
    "selection_anchored": {
      "type": "boolean",
      "description": "True when `quote` was found in the draft's plain-text projection and the comment will be applyable. False means the quote couldn't be located — apply will 409 with `target_text_not_found`."
    }
  }
}