{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/car-gene-com/json-schema/car-gene-com-service-detail-response-schema.json",
  "title": "ServiceDetailResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/car-gene-com-shops-api-openapi.yml#/components/schemas/ServiceDetailResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "code": {
      "type": "string",
      "title": "Code"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "category": {
      "type": "string",
      "title": "Category"
    },
    "description": {
      "type": "string",
      "title": "Description"
    },
    "parent_code": {
      "type": "string",
      "title": "Parent Code"
    },
    "attributes": {
      "items": {
        "$ref": "#/$defs/ServiceAttributeResponse"
      },
      "type": "array",
      "title": "Attributes"
    }
  },
  "type": "object",
  "required": [
    "id",
    "code",
    "name",
    "attributes"
  ],
  "$defs": {
    "ServiceAttributeResponse": {
      "properties": {
        "code": {
          "type": "string",
          "title": "Code"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "value_type": {
          "type": "string",
          "title": "Value Type"
        },
        "unit": {
          "type": "string",
          "title": "Unit"
        },
        "is_required": {
          "type": "boolean",
          "title": "Is Required"
        }
      },
      "type": "object",
      "required": [
        "code",
        "name",
        "value_type",
        "is_required"
      ],
      "title": "ServiceAttributeResponse",
      "description": "施術ごとに確認すべき条件。検索 UI の絞り込み項目にそのまま使える"
    }
  }
}