BlogPublishRequest blog.publish-request@1
Generated at from
openvibe-contracts v0.53.0 and
openvibe-sdk v0.11.0.
- Version
- 1.0.0
- Owner
- blog
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/blog/publish-request.v1.json
blog.publish-request@1: the body of POST /api/v1/posts/:id/publish on OpenVibe.Blog (blog.post.publish): { revision? } (default the head; an AI draft is published only after a person reviewed it: 409 post.review_required).
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
revision | integer | string | null |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: revision
{
"revision": 2
}Rejected: zero
{
"revision": 0
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('blog.publish-request@1', value); // { valid, errors: [{ path, message }] }