{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/codecov/main/json-schema/codecov-owner-schema.json",
  "title": "Owner",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codecov-users-api-openapi.yml#/components/schemas/Owner",
  "type": "object",
  "properties": {
    "service": {
      "allOf": [
        {
          "$ref": "#/$defs/ServiceEnum"
        }
      ],
      "readOnly": true
    },
    "username": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    }
  },
  "required": [
    "name",
    "service",
    "username"
  ],
  "$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"
    }
  }
}