M1: contracts and vectors (SPEC v0.1, schema 1)
contracts/openapi.yaml (OpenAPI 3.1, E-1..E-33, error shape and the exhaustive error code enum, device bearer scheme), contracts/schema/ server-v1.sql (SPEC §14.1 verbatim), seven test-vector files per §14.5.5, 80 examples (every JSON body of §14.3.4, every error code, sync pull/push, every FCM push type), and tools/contracts-check.py (stdlib-only reference of §9.1, §9.3, §9.4 and §14.5.4 plus shape checks; the M1 gate). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"id": "0192a004-0000-7000-8000-000000000001",
|
||||
"account_id": "0192a003-0000-7000-8000-000000000001",
|
||||
"category_id": "01920000-0000-7000-8000-000000000003",
|
||||
"amount_ore": 1250000,
|
||||
"description": "Hyra",
|
||||
"notes": "",
|
||||
"payer_user_id": "0192a000-0000-7000-8000-000000000001",
|
||||
"split_mode": "ratio",
|
||||
"splits": [
|
||||
{
|
||||
"user_id": "0192a000-0000-7000-8000-000000000001",
|
||||
"share_bp": 6000,
|
||||
"share_ore": null
|
||||
},
|
||||
{
|
||||
"user_id": "0192a000-0000-7000-8000-000000000002",
|
||||
"share_bp": 4000,
|
||||
"share_ore": null
|
||||
}
|
||||
],
|
||||
"day_of_month": 25,
|
||||
"start_period": "2026-10",
|
||||
"end_period": null,
|
||||
"paused": false,
|
||||
"last_generated_period": null,
|
||||
"next_occurrence_date": "2026-10-25",
|
||||
"created_by_user_id": "0192a000-0000-7000-8000-000000000001",
|
||||
"updated_by_user_id": "0192a000-0000-7000-8000-000000000001",
|
||||
"created_at": "2026-10-17T06:30:02.004Z",
|
||||
"updated_at": "2026-10-17T06:30:02.004Z",
|
||||
"deleted_at": null,
|
||||
"server_version": 30
|
||||
}
|
||||
Reference in New Issue
Block a user