RuntimeClass platform.runtime-class@1

Generated at from openvibe-contracts v0.114.0 and openvibe-sdk v0.35.1.

Version
1.0.0
Owner
network
Visibility
public
Status
active
Compatibility
backward
Decision
ADR-034
Schema
https://openvibe.network/contracts/platform/runtime-class.v1.json

platform.runtime-class@1: the kind of execution environment a platform.job@1 asks for (plan T14 Run; ADR-034 proposed). A name only: this contract defines no behavior, and a worker runs only the classes it advertises and refuses every other one (`nack`). `function` is the first class implemented (OpenVibe.Node's function worker); the others are reserved names. Each class names one reserved Fabric capability in [email protected] — `worker:` + the class (worker:function, worker:code, worker:browser, worker:linux, worker:desktop, worker:gpu) — and a node advertises the name of each class it runs.

Fields

This schema has no named fields.

Examples

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

Valid: browser
"browser"
Valid: code
"code"
Valid: desktop
"desktop"
Valid: function
"function"
Valid: gpu
"gpu"
Valid: linux
"linux"
Rejected: unknown-class
"container"
Rejected: upper-case
"Function"

Validate

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