{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/potto-app/json-schema/potto-app-learnable-summary-schema.json",
  "title": "LearnableSummary",
  "description": "Compact learnable summary returned by search and related expansion.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/potto-app-openapi.yml#/components/schemas/LearnableSummary",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "label": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": "string",
      "description": "kanji | vocabulary | grammar | character | radical, or a history entity type (person, event, era, …)."
    },
    "domain": {
      "type": "string",
      "enum": [
        "language",
        "history"
      ]
    },
    "jlpt_level": {
      "type": [
        "integer",
        "null"
      ],
      "description": "5 = N5 (beginner) … 1 = N1 (advanced)."
    },
    "is_common_word": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "canonical_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "History entities only."
    },
    "pattern": {
      "type": [
        "string",
        "null"
      ],
      "description": "Grammar points only."
    },
    "meaning": {
      "type": [
        "string",
        "null"
      ]
    },
    "writing_forms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "script": {
            "type": "string"
          }
        }
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}