SpaceSiteConfigResult space.site-config-result@1

Generated at from openvibe-contracts v0.150.0 and openvibe-sdk v0.44.0.

Version
1.0.0
Owner
space
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/space/site-config-result.v1.json

space.site-config-result@1: every answer of space.site.config on OpenVibe.Space. GET, PUT and DELETE /api/v1/sites/:id/config → { config } (after a PUT, the configuration as stored; after a DELETE, the defaults).

Fields

FieldTypeRequiredDescriptionConstraints
configspace.site-configyes

Examples

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

Valid: stored
{
  "config": {
    "headers": {
      "X-Frame-Options": "DENY"
    },
    "redirects": [],
    "spa": false
  }
}
Rejected: missing-spa
{
  "config": {
    "headers": {},
    "redirects": []
  }
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('space.site-config-result@1', value);   // { valid, errors: [{ path, message }] }