{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/witwiki-app/json-schema/witwiki-app-suggestion-schema.json",
  "title": "Suggestion",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/witwiki-app-openapi.yaml#/components/schemas/Suggestion",
  "type": "object",
  "properties": {
    "path": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "snippet": {
      "type": "string",
      "description": "Content excerpt with matched runs wrapped in ⟪ and ⟫. Plain text, never HTML. Empty for title/path matches."
    },
    "source": {
      "type": "string",
      "enum": [
        "content",
        "title"
      ],
      "description": "content = full-text body match; title = fuzzy title/path match"
    }
  }
}