WikiIndexDocumentDeletedPayload wiki.index_document.deleted@1
Generated at from
openvibe-contracts v0.33.0 and
openvibe-sdk v0.5.0.
- Version
- 1.0.0
- Owner
- wiki
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/events/payloads/wiki.index_document.deleted.v1.json
wiki.index_document.deleted v1 (OpenVibe.Wiki server/wiki/service.js sync, via openvibe-publishing/index-hooks indexEvent). A Search tombstone: the page is no longer published, public and listable, so Search drops it at this revision or older. Only sent for a page Search was sent before. Consumed by OpenVibe.Search ('*.index_document.*'). Envelope: subject { type: page, id, revision }, visibility internal, priority important, actor service:wiki.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
type | const | yes |
| |
id | string | yes |
| |
revision | integer | yes | Index revision of the tombstone; wins over any document at the same or an older revision. |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: tombstone
{
"type": "page",
"id": "pg_01JAB2C3D4E5F6G7H8J9K0MNPR",
"revision": 4
}Rejected: full-document
{
"owner": "wiki",
"type": "page",
"id": "pg_01JAB2C3D4E5F6G7H8J9K0MNPR",
"revision": 4,
"deleted": true
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('wiki.index_document.deleted@1', value); // { valid, errors: [{ path, message }] }