{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codai-ro/json-schema/codai-ro-list-create-input-schema.json",
  "title": "ListCreateInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codai-ro-lists-api-openapi.yml#/components/schemas/ListCreateInput",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "icon": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40,
      "pattern": "^[a-z0-9-]+$",
      "description": "Lucide icon name."
    },
    "color": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^(#[0-9a-fA-F]{6}|[a-z]+(-\\d{2,3})?)$",
      "description": "Hex color or a palette token such as `violet-500`."
    },
    "show_in_share": {
      "type": "boolean",
      "default": true
    },
    "price_watch": {
      "type": "boolean",
      "default": false
    }
  }
}