{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/codecov/main/json-schema/codecov-user-schema.json",
  "title": "User",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codecov-users-api-openapi.yml#/components/schemas/User",
  "type": "object",
  "properties": {
    "service": {
      "$ref": "#/$defs/ServiceEnum"
    },
    "username": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "activated": {
      "type": "boolean"
    },
    "is_admin": {
      "type": "boolean"
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "activated",
    "is_admin",
    "service"
  ],
  "$defs": {
    "ServiceEnum": {
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ],
      "type": "string",
      "description": "* `github` - Github\n* `gitlab` - Gitlab\n* `bitbucket` - Bitbucket\n* `github_enterprise` - Github Enterprise\n* `gitlab_enterprise` - Gitlab Enterprise\n* `bitbucket_server` - Bitbucket Server"
    }
  }
}