NoBody common.no-body@1

Generated at from openvibe-contracts v0.53.0 and openvibe-sdk v0.11.0.

Version
1.0.0
Owner
common
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/common/no-body.v1.json

common.no-body@1: the capability's request carries no body; its parameters are the path and query of the routes in implementedBy (an id, a page cursor). An input schema that says so explicitly, so every active capability names one (roadmap WS-C task 4).

Fields

This schema has no named fields.

Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

Valid: empty
{}
Rejected: has-a-field
{
  "id": "x"
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('common.no-body@1', value);   // { valid, errors: [{ path, message }] }