NetworkModuleWriteRequest network.module-write-request@1

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

Version
1.0.0
Owner
network
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/network/module-write-request.v1.json

network.module-write-request@1: the request of network.modules.write on OpenVibe.Network. PUT /internal/modules/:namespace/:subject: { data } — the record's new value, validated against the namespace's schema; If-Match names the revision read (412 if it moved). DELETE /internal/modules/:namespace/:subject (204) takes no body. The answer to PUT is modules.module-record@1.

Fields

This schema has no named fields.

Examples

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

Valid: put
{
  "data": {
    "send": true,
    "volume": 0.8
  }
}
Rejected: data-text
{
  "data": "on"
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('network.module-write-request@1', value);   // { valid, errors: [{ path, message }] }