NewsTimelineUpdateResult news.timeline-update-result@1
Generated at from
openvibe-contracts v0.53.0 and
openvibe-sdk v0.11.0.
- Version
- 1.0.0
- Owner
- news
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/news/timeline-update-result.v1.json
news.timeline-update-result@1: answers of news.timeline.update on OpenVibe.News. POST /api/v1/stories/:id/timeline → 201 { entry } (the stored row; timestamps in epoch milliseconds). DELETE /api/v1/stories/:id/timeline/:eid → { removed: true }.
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: added
{
"entry": {
"id": "tle_01JAB4T5V6W7X8Y9Z0A1B2C3D4",
"story_id": "sty_01JAB3DEF4GH5JK6MN7PQ8RS9T",
"occurred_on": "2026-09-23",
"text": "Inspectors report cracks in a bridge support.",
"source_item_id": "nsi_01JAB2Z7Y6X5W4V3T2S1R0QPNM",
"created_by": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"created_at": 1790237700000,
"removed_at": null
}
}Valid: removed
{
"removed": true
}Rejected: entry-without-source
{
"entry": {
"id": "tle_01JAB4T5V6W7X8Y9Z0A1B2C3D4",
"story_id": "sty_01JAB3DEF4GH5JK6MN7PQ8RS9T",
"occurred_on": "2026-09-23",
"text": "Cracks.",
"created_by": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"created_at": 1790237700000,
"removed_at": null
}
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('news.timeline-update-result@1', value); // { valid, errors: [{ path, message }] }