{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/orbit/main/json-schema/orbit-member-and-identity-schema.json",
  "title": "member_and_identity",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orbit-members-api-openapi.yml#/components/schemas/member_and_identity",
  "type": "object",
  "properties": {
    "member": {
      "$ref": "#/$defs/member"
    },
    "identity": {
      "$ref": "#/$defs/identity"
    }
  },
  "$defs": {
    "identity": {
      "type": "object",
      "description": "Represents an email address, a profile on networks like github and twitter, or a record in another system.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the person in the source system"
        },
        "source": {
          "type": "string",
          "description": "The type of source: known values include github, twitter, discourse, email, linkedin, devto. Custom values can also be used"
        },
        "source_host": {
          "type": "string",
          "description": "Specifies the location of the source, such as the host of a Discourse instance"
        },
        "username": {
          "type": "string",
          "description": "The username of the person in the source system"
        },
        "uid": {
          "type": "string",
          "description": "The uid of the person in the source system"
        },
        "email": {
          "type": "string",
          "description": "The email of the person in the source system"
        },
        "url": {
          "type": "string",
          "description": "For custom identities, an optional link to the profile on the source system"
        }
      },
      "required": [
        "source"
      ]
    },
    "member": {
      "type": "object",
      "properties": {
        "bio": {
          "type": "string"
        },
        "birthday": {
          "type": "string"
        },
        "company": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "location": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "pronouns": {
          "type": "string"
        },
        "shipping_address": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "tags_to_add": {
          "type": "string",
          "description": "Adds tags to member; comma-separated string or array"
        },
        "tags": {
          "type": "string",
          "description": "Replaces all tags for the member; comma-separated string or array"
        },
        "tag_list": {
          "type": "string",
          "description": "Deprecated: Please use the tags attribute instead"
        },
        "tshirt": {
          "type": "string"
        },
        "teammate": {
          "type": "boolean"
        },
        "url": {
          "type": "string"
        },
        "github": {
          "type": "string",
          "description": "The member's GitHub username"
        },
        "twitter": {
          "type": "string",
          "description": "The member's Twitter username"
        },
        "email": {
          "type": "string",
          "description": "The member's email"
        },
        "linkedin": {
          "type": "string",
          "description": "The member's LinkedIn username, without the in/ or pub/"
        },
        "devto": {
          "type": "string",
          "description": "The member's DEV username"
        }
      }
    }
  }
}