GitHubBlobModel#
- pydantic model safir.github.models.GitHubBlobModel#
A Pydantic model for a blob, returned by the GitHub blob endpoint.
See https://docs.github.com/en/rest/git/blobs#get-a-blob
- Parameters:
data (
Any
) –
Show JSON schema
{ "title": "GitHubBlobModel", "description": "A Pydantic model for a blob, returned by the GitHub blob endpoint.\n\nSee https://docs.github.com/en/rest/git/blobs#get-a-blob", "type": "object", "properties": { "content": { "title": "Content", "description": "The blob's encoded content. Use the `decode` method to decode.", "type": "string" }, "encoding": { "title": "Encoding", "description": "Content encoding (typically base64).", "type": "string" }, "url": { "title": "Url", "description": "API URL of this resource.", "minLength": 1, "maxLength": 2083, "format": "uri", "type": "string" }, "sha": { "title": "Sha", "description": "Git SHA of tree object.", "type": "string" }, "size": { "title": "Size", "description": "Size of the content in bytes.", "type": "integer" } }, "required": [ "content", "encoding", "url", "sha", "size" ] }
-
field url:
HttpUrl
[Required]# API URL of this resource.
- Constraints:
minLength = 1
maxLength = 2083
format = uri