ReviewsCorrectionSubmitResult reviews.correction-submit-result@1
Generated at from
openvibe-contracts v0.53.0 and
openvibe-sdk v0.11.0.
- Version
- 1.0.0
- Owner
- reviews
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/reviews/correction-submit-result.v1.json
reviews.correction-submit-result@1: the answer of reviews.correction.submit on OpenVibe.Reviews: POST /api/v1/entities/:ref/corrections → 201 { correction } (open, filed under the canonical entity).
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
correction | reviews.correction | yes |
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: submitted
{
"correction": {
"id": "cor_01JAC7C8D9E0F1G2H3J4K5M6N7",
"entity_id": "ent_01JAC1E2N3T4V5W6X7Y8Z9A0B1",
"target_type": "aggregate",
"target_id": null,
"body": "The rating count looks doubled: Sound Lab lists 159 ratings.",
"evidence_url": "https://soundlab.example/lumen-x2",
"submitted_by": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"via": null,
"status": "open",
"resolved_by": null,
"resolution_note": null,
"resolved_at": null,
"created_at": 1790240000000
}
}Rejected: no-correction
{
"id": "cor_01JAC7C8D9E0F1G2H3J4K5M6N7"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('reviews.correction-submit-result@1', value); // { valid, errors: [{ path, message }] }