RuntimeClass platform.runtime-class@1

Generated at from openvibe-contracts v0.86.0 and openvibe-sdk v0.26.0.

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.

Fields

This schema has no named fields.

Examples

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

Valid: function
"function"
Valid: gpu
"gpu"
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 }] }