{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/car-gene-com/json-schema/car-gene-com-me-response-schema.json",
  "title": "MeResponse",
  "description": "画面の出し分けに使う本人の情報。**判定は API 側**——ここが shop を\n返しても、書き込みは店の口 (/api/my-shop/...) が shop_members で止める",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/car-gene-com-me-api-openapi.yml#/components/schemas/MeResponse",
  "properties": {
    "user_id": {
      "type": "string",
      "title": "User Id"
    },
    "email": {
      "type": "string",
      "title": "Email"
    },
    "is_admin": {
      "type": "boolean",
      "title": "Is Admin"
    },
    "shop": {
      "$ref": "#/$defs/MyShop"
    }
  },
  "type": "object",
  "required": [
    "user_id",
    "is_admin"
  ],
  "$defs": {
    "MyShop": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "prefecture": {
          "type": "string",
          "title": "Prefecture"
        },
        "city": {
          "type": "string",
          "title": "City"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "sells_used_cars": {
          "type": "boolean",
          "title": "Sells Used Cars"
        },
        "antique_license": {
          "type": "string",
          "title": "Antique License"
        },
        "role": {
          "type": "string",
          "enum": [
            "owner",
            "staff"
          ],
          "title": "Role"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "status",
        "sells_used_cars",
        "role"
      ],
      "title": "MyShop",
      "description": "ログインした人がメンバーの店"
    }
  }
}