DesignGlyphDraftResult design.glyph-draft-result@1

Generated at from openvibe-contracts v0.419.0 and openvibe-sdk v0.161.0.

Version
1.0.0
Owner
design
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/design/glyph-draft-result.v1.json

A glyph request's review state. A draft is never a public icon until staff approval; approved drawings may then be imported into openvibe-shared.

Fields

FieldTypeRequiredDescriptionConstraints
namestringyes
  • pattern ^[a-z][a-z0-9-]{1,31}$
statusenumyes
  • one of "pending", "approved"
draft_idsarray of stringyes
  • maxItems 8
  • items: pattern ^gd_[0-9a-f]{16}$
createdbooleanyes

Examples

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

Valid: pending
{
  "name": "daily-2026-11-09",
  "status": "pending",
  "draft_ids": [
    "gd_0123456789abcdef"
  ],
  "created": true
}
Rejected: public-before-review
{
  "name": "daily-2026-11-09",
  "status": "public",
  "draft_ids": [],
  "created": true
}

Validate

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