{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shirabe-dev/json-schema/shirabe-dev-best-days-response-schema.json",
  "title": "BestDaysResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shirabe-dev-openapi.yaml#/components/schemas/BestDaysResponse",
  "type": "object",
  "required": [
    "purpose",
    "start",
    "end",
    "results"
  ],
  "properties": {
    "purpose": {
      "$ref": "#/$defs/Category"
    },
    "start": {
      "type": "string",
      "format": "date"
    },
    "end": {
      "type": "string",
      "format": "date"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BestDay"
      }
    }
  },
  "$defs": {
    "BestDay": {
      "type": "object",
      "required": [
        "date",
        "score",
        "judgment"
      ],
      "properties": {
        "date": {
          "type": "string",
          "format": "date"
        },
        "score": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10
        },
        "judgment": {
          "$ref": "#/$defs/JudgmentValue"
        },
        "note": {
          "type": "string"
        },
        "rokuyo": {
          "type": "string"
        },
        "rekichu": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "Category": {
      "type": "string",
      "description": "用途カテゴリ",
      "enum": [
        "wedding",
        "funeral",
        "moving",
        "construction",
        "business",
        "car_delivery",
        "marriage_registration",
        "travel"
      ]
    },
    "JudgmentValue": {
      "type": "string",
      "description": "コンテキスト判定値",
      "enum": [
        "大吉",
        "吉",
        "小吉",
        "問題なし",
        "注意",
        "凶",
        "大凶"
      ]
    }
  }
}