BlogThemeRequest blog.theme-request@1

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

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

blog.theme-request@1: the body of PUT /api/v1/blogs/:handle/theme on OpenVibe.Blog (blog.theme.set; an owner): one of the theme presets.

Fields

FieldTypeRequiredDescriptionConstraints
themeenumyes
  • one of "vibe", "paper", "slate", "sand", "nord", "high-contrast"

Examples

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

Valid: nord
{
  "theme": "nord"
}
Rejected: unknown
{
  "theme": "neon"
}

Validate

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