QuestStepTypeRequest quest.step-type-request@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- quest
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/quest/step-type-request.v1.json
A developer app's proposed daily step. Quest accepts only topics in its known Events catalog, verifies the site's host and queues the proposal for staff review.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | string | yes |
| |
event_type | string | yes |
| |
site | string | yes |
| |
sentence | string | yes |
| |
href | string | yes |
| |
weight | integer |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: known-topic
{
"id": "stream",
"event_type": "live.stream.started",
"site": "openvibe.live",
"sentence": "Go live",
"href": "https://openvibe.live/",
"weight": 1
}Rejected: no-topic
{
"id": "stream",
"event_type": "",
"site": "openvibe.live",
"sentence": "Go live",
"href": "https://openvibe.live/",
"weight": 1
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('quest.step-type-request@1', value); // { valid, errors: [{ path, message }] }