WikiRevision wiki.revision@1
Generated at from
openvibe-contracts v0.53.0 and
openvibe-sdk v0.11.0.
- Version
- 1.0.0
- Owner
- wiki
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/wiki/revision.v1.json
wiki.revision@1: one revision of a wiki page (server/http/api.js serializeRevision): its number, kind, parent, fields, Markdown body and authorship (human, AI-assisted or AI with the workflow and run). History lists leave the body out.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
number | integer | yes |
| |
id | string | yes | ||
kind | string | yes | ||
parent_number | integer | null | |||
reverted_to | integer | null | |||
title | string | yes | ||
summary | string | null | |||
infobox | array | |||
body | string | |||
authorship | object | null | |||
author | string | null | yes | ||
message | string | null | |||
created_at | string | integer | yes | ||
published | boolean | |||
citation_count | integer | |||
proposal | object | null |
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: edit
{
"number": 3,
"id": "rev_01JAB2C3D4E5F6G7H8J9K0MNPR",
"kind": "edit",
"parent_number": 2,
"reverted_to": null,
"title": "Restreaming",
"summary": "Sending one stream to several platforms.",
"infobox": [],
"body": "Restreaming sends one encoder feed to several platforms.",
"authorship": {
"mode": "human"
},
"author": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"message": "clarify",
"created_at": "2026-09-24T10:00:00.000Z"
}Rejected: zero
{
"number": 0,
"id": "x",
"kind": "edit",
"title": "t",
"author": null,
"created_at": "x"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('wiki.revision@1', value); // { valid, errors: [{ path, message }] }