PlayTitleResult play.title-result@1
Generated at from
openvibe-contracts v0.177.0 and
openvibe-sdk v0.44.0.
- Version
- 1.0.0
- Owner
- play
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Decision
- Games ADR-0007
- Schema
https://openvibe.network/contracts/play/title-result.v1.json
The answer to registering or updating a title: the title as anyone reads it, and whether this call created it (201) or updated it (200).
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
title | object | yes | ||
title.id | string | yes |
| |
title.name | string | yes | ||
title.url | string | null | |||
title.summary | string | |||
title.players | integer |
| ||
title.achievements | array of object | yes | ||
title.achievements[].id | string | yes |
| |
title.achievements[].name | string | yes | ||
title.achievements[].description | string | |||
title.achievements[].hidden | boolean | |||
title.achievements[].unlocked_by | integer |
| ||
title.boards | array of object | yes | ||
title.boards[].id | string | yes |
| |
title.boards[].name | string | yes | ||
title.boards[].kind | enum | yes |
| |
title.created_at | string |
| ||
title.updated_at | string |
| ||
created | boolean | yes |
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: basic
{
"title": {
"id": "salvage-rush",
"name": "Salvage Rush",
"url": null,
"summary": "",
"players": 2,
"achievements": [
{
"id": "first-haul",
"name": "First Haul",
"description": "",
"unlocked_by": 2
}
],
"boards": [
{
"id": "best",
"name": "Best round",
"kind": "best"
}
],
"created_at": "2026-10-14T12:00:00.000Z",
"updated_at": "2026-10-14T12:00:00.000Z"
},
"created": true
}Rejected: basic
{
"title": {
"id": "salvage-rush"
},
"created": "yes"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('play.title-result@1', value); // { valid, errors: [{ path, message }] }