{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/compteam-io/json-schema/compteam-io-profile-update-schema.json",
  "title": "ProfileUpdate",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/compteam-io-openapi.yml#/components/schemas/ProfileUpdate",
  "properties": {
    "first_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "First Name"
    },
    "last_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Name"
    },
    "display_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Display Name"
    },
    "belt": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "white",
            "blue",
            "purple",
            "brown",
            "black",
            "grey",
            "grey-white",
            "grey-black",
            "yellow",
            "yellow-white",
            "yellow-black",
            "orange",
            "orange-white",
            "orange-black",
            "green",
            "green-white",
            "green-black"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Belt"
    },
    "stripes": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "0",
            "1",
            "2",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9",
            "10",
            "11"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Stripes"
    },
    "date_of_birth": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Date Of Birth"
    },
    "gender": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Gender"
    },
    "nationality": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nationality"
    },
    "phone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Phone"
    },
    "competition_weight_kg": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Competition Weight Kg"
    },
    "imported_training_hours": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Imported Training Hours"
    },
    "smoothcomp_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Smoothcomp Id"
    },
    "instagram_handle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Instagram Handle"
    },
    "theme_preference": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "dark",
            "light",
            "tatami",
            "oled"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Theme Preference"
    },
    "role": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "athlete",
            "coach",
            "branch_admin"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Role"
    },
    "dashboard_preferences": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dashboard Preferences"
    },
    "monthly_net_salary": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Monthly Net Salary"
    },
    "monthly_withholdings": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Monthly Withholdings"
    },
    "historical_membership_start_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Historical Membership Start Date"
    },
    "member_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Member Number"
    }
  },
  "type": "object"
}