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": { "title": "Login name", "description": "GitHub username.", "type": "string" }, "html_url": { "title": "Profile URL", "description": "Homepage for the user on GitHub.", "minLength": 1, "maxLength": 2083, "format": "uri", "type": "string" }, "url": { "title": "API URL", "description": "URL for the user's resource in the GitHub API.", "minLength": 1, "maxLength": 2083, "format": "uri", "type": "string" }, "avatar_url": { "title": "Avatar image URL", "description": "URL to the user's avatar.", "minLength": 1, "maxLength": 2083, "format": "uri", "type": "string" } }, "required": [ "login", "html_url", "url", "avatar_url" ] }
- Fields:
-
field avatar_url:
HttpUrl
[Required]# URL to the user’s avatar.
- Constraints:
minLength = 1
maxLength = 2083
format = uri
-
field html_url:
HttpUrl
[Required]# Homepage for the user on GitHub.
- Constraints:
minLength = 1
maxLength = 2083
format = uri
-
field url:
HttpUrl
[Required]# URL for the user’s resource in the GitHub API.
- Constraints:
minLength = 1
maxLength = 2083
format = uri