TipsGoalResult tips.goal-result@1
Generated at from
openvibe-contracts v0.53.0 and
openvibe-sdk v0.11.0.
- Version
- 1.0.0
- Owner
- tips
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/tips/goal-result.v1.json
tips.goal-result@1: one goal on OpenVibe.Tips (tips.goal.create, tips.goal.update, tips.goal.close). POST /api/v1/goals (201), PATCH /api/v1/goals/:id and POST /api/v1/goals/:id/close → { goal } (closing keeps its history; closing a closed goal changes nothing). GET /api/v1/goals/:id → { goal }: with contributions for the creator and granted services, else the public shape (404 tips.goal_not_found when the page is off).
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
goal | tips.goal | yes |
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: goal
{
"goal": {
"id": "tgoal_01JAB2C3D4E5F6G7H8J9K0MNQ9",
"creator": {
"type": "user",
"id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
},
"title": "New microphone",
"description": "Help me sound less like a tin can.",
"target_amount": 20000,
"current_amount": 7350,
"currency": "vibes-bits",
"supporters_count": 12,
"carried_over_amount": 0,
"percent": 36,
"reached": false,
"reached_at": null,
"image_url": null,
"status": "active",
"sort_order": 0,
"revision": 13,
"created_at": "2026-09-10T20:00:00.000Z",
"updated_at": "2026-09-25T09:12:41.530Z",
"closed_at": null
}
}Rejected: null
{
"goal": null
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('tips.goal-result@1', value); // { valid, errors: [{ path, message }] }