PlayResultResponse play.result-response@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/result-response.v1.json
The answer to a result post: scores recorded and repeated, the achievements that were new, or the unlocks and scores a guest's adoption moved.
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: basic
{
"unlocked": [
"first-haul"
]
}Rejected: basic
{
"recorded": -1,
"repeated": 0
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('play.result-response@1', value); // { valid, errors: [{ path, message }] }