WikiCitationAttachResult wiki.citation-attach-result@1

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

Version
1.0.0
Owner
wiki
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/wiki/citation-attach-result.v1.json

wiki.citation-attach-result@1: the answer of POST /api/v1/pages/:id/revisions/:n/citations on OpenVibe.Wiki: 201 { citations } (the citations attached).

Fields

FieldTypeRequiredDescriptionConstraints
citationswiki.citationyes

Examples

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

Valid: attached
{
  "citations": [
    {
      "id": 71,
      "revision": 3,
      "url": "https://docs.example.com/rtmp",
      "title": "RTMP spec",
      "source_item_id": null,
      "retrieved_at": "2026-09-24T09:00:00.000Z",
      "quote": null,
      "license_note": null,
      "carried_from": null,
      "attached_by": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
      "attached_at": "2026-09-24T10:00:00.000Z"
    }
  ]
}
Rejected: no-id
{
  "citations": [
    {
      "url": "x"
    }
  ]
}

Validate

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