GitHubBranchCommitModel#

pydantic model safir.github.models.GitHubBranchCommitModel#

A Pydantic model for the commit field found in GitHubBranchModel.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "GitHubBranchCommitModel",
   "description": "A Pydantic model for the commit field found in `GitHubBranchModel`.",
   "type": "object",
   "properties": {
      "sha": {
         "description": "Git commit SHA.",
         "title": "Sha",
         "type": "string"
      },
      "url": {
         "description": "URL for commit resource.",
         "format": "uri",
         "maxLength": 2083,
         "minLength": 1,
         "title": "Url",
         "type": "string"
      }
   },
   "required": [
      "sha",
      "url"
   ]
}

Fields:
field sha: str [Required]#

Git commit SHA.

field url: HttpUrl [Required]#

URL for commit resource.

Constraints:
  • max_length = 2083

  • allowed_schemes = [‘http’, ‘https’]

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.