DealsOfferUpdateRequest deals.offer-update-request@1

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

Version
1.0.0
Owner
deals
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/deals/offer-update-request.v1.json

deals.offer-update-request@1: bodies of deals.offer.update on OpenVibe.Deals. PATCH /api/v1/offers/:id (the submitter or a moderator): { title?, description?, category?, expires_at?, product_slug? | product?, ai_summary? } (ai_summary only from OpenVibe.AI with X-OV-Origin: ai; product null detaches it). POST /api/v1/offers/:id/observations (a person): a price report — at least a price, shipping cost, availability or condition, with the currency of any amount; services may give observed_at (not in the future).

Fields

This schema has no named fields.

Examples

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

Valid: observation
{
  "price": "74.99",
  "currency": "USD",
  "availability": "limited"
}
Valid: patch
{
  "expires_at": "2026-10-01T00:00:00Z",
  "category": "streaming"
}
Rejected: bad-values
{
  "title": "x",
  "condition": "mint"
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('deals.offer-update-request@1', value);   // { valid, errors: [{ path, message }] }