GitHubUserModel

pydantic model safir.github.models.GitHubUserModel

A Pydantic model for the user field found in GitHub API resources.

This contains brief (public) info about a user.

Parameters:

data (Any)

Show JSON schema
{
   "title": "GitHubUserModel",
   "description": "A Pydantic model for the ``user`` field found in GitHub API resources.\n\nThis contains brief (public) info about a user.",
   "type": "object",
   "properties": {
      "login": {
         "description": "GitHub username.",
         "title": "Login name",
         "type": "string"
      },
      "html_url": {
         "description": "Homepage for the user on GitHub.",
         "format": "uri",
         "maxLength": 2083,
         "minLength": 1,
         "title": "Profile URL",
         "type": "string"
      },
      "url": {
         "description": "URL for the user's resource in the GitHub API.",
         "format": "uri",
         "maxLength": 2083,
         "minLength": 1,
         "title": "API URL",
         "type": "string"
      },
      "avatar_url": {
         "description": "URL to the user's avatar.",
         "format": "uri",
         "maxLength": 2083,
         "minLength": 1,
         "title": "Avatar image URL",
         "type": "string"
      }
   },
   "required": [
      "login",
      "html_url",
      "url",
      "avatar_url"
   ]
}

Fields:
field avatar_url: HttpUrl [Required]

URL to the user’s avatar.

field html_url: HttpUrl [Required]

Homepage for the user on GitHub.

field login: str [Required]

GitHub username.

field url: HttpUrl [Required]

URL for the user’s resource in the GitHub API.