NetworkMenuFeedsV2 network.menu-feeds@2

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

Version
2.0.0
Owner
network
Visibility
public
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/network/menu-feeds.v2.json

network.menu-feeds@2: every offered feed card is on unless its id is in off. order lists cards the person has positioned; other cards follow in their default order. GET and PUT /api/v1/me/menu-feeds.

Fields

FieldTypeRequiredDescriptionConstraints
orderarray of stringyes
  • maxItems 100
  • unique items
  • items: pattern ^[a-z0-9-]{1,30}:[a-z0-9-]{1,30}$
offarray of stringyes
  • maxItems 100
  • unique items
  • items: pattern ^[a-z0-9-]{1,30}:[a-z0-9-]{1,30}$
updated_atstring | nullyes
  • format date-time

Examples

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

Valid: empty
{
  "on": [],
  "updated_at": "2026-11-07T12:00:00.000Z"
}
Valid: four
{
  "on": [
    "media-hub:trending",
    "live:live-now",
    "news:top",
    "wiki:featured"
  ],
  "updated_at": "2026-11-07T12:00:00.000Z"
}
Valid: two
{
  "on": [
    "today:today",
    "games:new-worlds"
  ],
  "updated_at": "2026-11-07T12:00:00.000Z"
}
Rejected: bad-id
{
  "on": [
    "Today:Top"
  ],
  "updated_at": "2026-11-07T12:00:00.000Z"
}
Rejected: bad-time
{
  "on": [
    "today:today"
  ],
  "updated_at": "yesterday"
}
Rejected: five
{
  "on": [
    "today:today",
    "games:new-worlds",
    "news:top",
    "wiki:featured",
    "live:live-now"
  ],
  "updated_at": "2026-11-07T12:00:00.000Z"
}
Rejected: missing-on
{
  "updated_at": "2026-11-07T12:00:00.000Z"
}
Rejected: unknown-key
{
  "on": [
    "today:today"
  ],
  "updated_at": "2026-11-07T12:00:00.000Z",
  "off": []
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('network.menu-feeds@2', value);   // { valid, errors: [{ path, message }] }