{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coderpad/json-schema/coderpad-me-schema.json",
  "title": "me",
  "description": "description of the account that own the token",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coderpad-me-api-openapi.yml#/components/schemas/me",
  "type": "object",
  "properties": {
    "teams": {
      "type": "array",
      "description": "the teams the account is a member of",
      "items": {
        "$ref": "#/$defs/me_team"
      }
    },
    "organization_id": {
      "type": "string",
      "description": "the organization id"
    },
    "recruiter_id": {
      "type": "string",
      "description": "the recruiter id"
    }
  },
  "$defs": {
    "me_team": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "the team id"
        },
        "name": {
          "type": "string",
          "description": "the team name"
        },
        "is_default": {
          "type": "boolean",
          "description": "whether the team is the default one of the token owner"
        }
      },
      "description": "a team the account is a member of"
    }
  }
}