ActorSkillRunResult actor.skill-run-result@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- actor
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/actor/skill-run-result.v1.json
actor.skill-run-result@1: a catalogue run is an ordinary Actor task, with its skill and subject labelled.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
run | object | yes | ||
run.id | string | yes |
| |
run.skill | string | yes | ||
run.subject | string | yes |
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: basic
{
"run": {
"id": "tsk_example",
"skill": "research-brief",
"subject": "Trip"
}
}Rejected: id
{
"run": {
"id": "wrong",
"skill": "research-brief",
"subject": "Trip"
}
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('actor.skill-run-result@1', value); // { valid, errors: [{ path, message }] }