{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aistoryhub-co/json-schema/aistoryhub-co-editorial-result-schema.json",
  "title": "EditorialResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aistoryhub-co-ai-api-openapi.yml#/components/schemas/EditorialResult",
  "type": "object",
  "properties": {
    "notes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EditorialNote"
      }
    },
    "fence_list": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "scope_limits": {}
  },
  "$defs": {
    "EditorialNote": {
      "type": "object",
      "description": "A single editorial note anchored to the chapter text by verbatim quote.",
      "properties": {
        "category": {
          "type": "string"
        },
        "scope": {
          "type": "string",
          "enum": [
            "line",
            "structural"
          ]
        },
        "confidence": {
          "type": "string",
          "enum": [
            "high",
            "medium",
            "low"
          ]
        },
        "note": {
          "type": "string"
        },
        "suggestedInstruction": {
          "type": "string"
        },
        "anchorStart": {
          "type": "string"
        },
        "anchorEnd": {
          "type": "string"
        },
        "paragraphIndex": {
          "type": "integer"
        },
        "paragraphIndexEnd": {
          "type": "integer"
        }
      },
      "additionalProperties": true
    }
  }
}