CommunityPasteModerateResult community.paste-moderate-result@1

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

Version
1.0.0
Owner
community
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/community/paste-moderate-result.v1.json

community.paste-moderate-result@1: answers of the staff paste routes on OpenVibe.Community. POST /api/pastes/bulk → { done, skipped }; POST /api/pastes/:slug/censor → { paste } (the paste with its new image); DELETE /api/pastes/:slug/comments/:id → { message: 'Comment deleted' }. Each action is written to the moderation audit log (community.moderation.action).

Fields

This schema has no named fields.

Examples

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

Valid: bulk
{
  "done": 2,
  "skipped": 0
}
Valid: comment-deleted
{
  "message": "Comment deleted"
}
Rejected: negative
{
  "done": -1,
  "skipped": 0
}

Validate

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