{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/schedchie-com/json-schema/schedchie-com-note-schema.json",
  "title": "Note",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/schedchie-com-openapi.json#/components/schemas/Note",
  "type": "object",
  "required": [
    "id",
    "content",
    "tags",
    "accountGroups",
    "linkedDate"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "note",
        "idea",
        "draft",
        "reminder"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "archived",
        "converted"
      ]
    },
    "stage": {
      "type": "string",
      "enum": [
        "idea",
        "drafting",
        "done"
      ]
    },
    "order": {
      "type": "integer"
    },
    "pinned": {
      "type": "boolean"
    },
    "linkedDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The calendar date the note is pinned to."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "color": {
      "type": "string",
      "enum": [
        "yellow",
        "blue",
        "green",
        "purple",
        "pink",
        "orange"
      ]
    },
    "priority": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high"
      ]
    },
    "accountGroups": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "string"
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    "linkedPost": {},
    "linkedLibraryItem": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}