InventoryReviewRequest inventory.review-request@1
Generated at from
openvibe-contracts v0.127.0 and
openvibe-sdk v0.37.0.
- Version
- 1.0.0
- Owner
- inventory
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Decision
- ADR-054
- Schema
https://openvibe.network/contracts/inventory/review-request.v1.json
Staff's decision on a Workshop definition in review (ADR-054 §6): publish it (optionally with an honest rarity other than common) or reject it with a reason the creator sees.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
decision | enum | yes |
| |
reason | string | Required for reject: what the creator reads. |
| |
rarity | enum |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: publish
{
"decision": "publish",
"rarity": "uncommon"
}Valid: reject
{
"decision": "reject",
"reason": "The image is someone else's artwork."
}Rejected: reject-without-reason
{
"decision": "reject"
}Rejected: unknown-decision
{
"decision": "approve"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('inventory.review-request@1', value); // { valid, errors: [{ path, message }] }