---
title: "git.access-result@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/git.access-result"
updated: null
---

# git.access-result@1 · OpenVibe.Services

HTML: [git.access-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/git.access-result)

# GitAccessResult `git.access-result@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: git
- Visibility: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/git/access-result.v1.json`](/docs/contracts/git.access-result.json)

git.access-result@1: the common result of git.read and git.write on OpenVibe.Git. A repository names its full name, its page and clone addresses, its visibility and default branch; a contents write or a token also carries the branch or commit it made.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `full_name` | string | yes |  | - `pattern ^[a-z0-9][a-z0-9._-]{0,38}/[a-z0-9][a-z0-9._-]{0,99}$` |
| `html_url` | string |  |  | - `pattern ^https://`<br>- `format uri` |
| `clone_url` | string |  |  | - `pattern ^https://`<br>- `format uri` |
| `visibility` | enum |  |  | - `one of "public", "private"` |
| `default_branch` | string |  |  | - `maxLength 255` |
| `branch` | string |  |  | - `maxLength 255` |
| `sha` | string |  |  | - `pattern ^[0-9a-f]{40}([0-9a-f]{24})?$` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: contents-write

~~~~
{
  "full_name": "ada/my-site",
  "branch": "agent/run-1",
  "sha": "0123456789abcdef0123456789abcdef01234567"
}
~~~~

Valid: repository

~~~~
{
  "full_name": "ada/my-site",
  "html_url": "https://git.openvibe.codes/ada/my-site",
  "clone_url": "https://git.openvibe.codes/ada/my-site.git",
  "visibility": "private",
  "default_branch": "main"
}
~~~~

Rejected: insecure-clone-url

~~~~
{
  "full_name": "ada/my-site",
  "clone_url": "http://git.openvibe.codes/ada/my-site.git"
}
~~~~

Rejected: not-a-full-name

~~~~
{
  "full_name": "ada"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('git.access-result@1', value);   // { valid, errors: [{ path, message }] }
~~~~
