GitIssue git.issue@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- git
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/git/issue.v1.json
Git G2 issue metadata. Community thread is hidden; Git authorizes repository access. PostgreSQL bigint numbers may be decimal strings.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | string | yes |
| |
number | integer | string | yes |
| |
repo_id | string | yes | ||
title | string | yes |
| |
body | string | yes |
| |
author | string | yes | ||
state | enum | yes |
| |
thread_id | string | null | yes | ||
created_at | string | yes |
| |
closed_at | string | null | yes |
| |
labels | array of string | yes |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: open
{
"id": "iss_00000000000000000000000000",
"number": 1,
"repo_id": "repo_00000000000000000000000000",
"title": "Review a change",
"body": "Details",
"author": "usr_00000000000000000000000000",
"state": "open",
"thread_id": null,
"created_at": "2026-11-09T12:00:00Z",
"closed_at": null,
"labels": [
"docs"
]
}Rejected: state
{
"id": "iss_00000000000000000000000000",
"number": 1,
"repo_id": "repo_00000000000000000000000000",
"title": "Review a change",
"body": "Details",
"author": "usr_00000000000000000000000000",
"state": "unknown",
"thread_id": null,
"created_at": "2026-11-09T12:00:00Z",
"closed_at": null,
"labels": [
"docs"
]
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('git.issue@1', value); // { valid, errors: [{ path, message }] }