-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfirms.schema.json
More file actions
27 lines (27 loc) · 899 Bytes
/
confirms.schema.json
File metadata and controls
27 lines (27 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "confirms.schema.json",
"type": "object",
"required": [
"event_id",
"event_ts",
"source",
"confirm_id",
"trade_id",
"status"
],
"properties": {
"event_id": { "type": "string" },
"event_ts": { "type": "string", "format": "date-time" },
"ingest_ts": { "type": "string", "format": "date-time" },
"source": { "enum": ["custodian"] },
"confirm_id": { "type": "string" },
"trade_id": { "type": "string" },
"status": { "enum": ["PENDING", "SETTLED", "FAILED"] },
"settlement_ts": { "type": "string", "format": "date-time" },
"reason": { "type": "string" },
"trace_id": { "type": "string" }
},
"additionalProperties": false,
"description": "Referential check that trade_id exists in trades is enforced downstream (Dataflow/BigQuery), not in JSON Schema."
}