-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtropic-contract-schema.json
More file actions
86 lines (86 loc) · 2.3 KB
/
Copy pathtropic-contract-schema.json
File metadata and controls
86 lines (86 loc) · 2.3 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://api.tropicapp.io/schemas/contract",
"title": "Contract",
"description": "A vendor contract managed in the Tropic procurement platform",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique contract identifier"
},
"name": {
"type": "string",
"description": "Contract display name",
"minLength": 1,
"maxLength": 255
},
"supplier_id": {
"type": "string",
"description": "ID of the associated supplier"
},
"supplier_name": {
"type": "string",
"description": "Name of the associated supplier"
},
"status": {
"type": "string",
"enum": ["active", "expired", "pending", "cancelled"],
"description": "Current contract status"
},
"start_date": {
"type": "string",
"format": "date",
"description": "Contract effective start date (ISO 8601)"
},
"end_date": {
"type": "string",
"format": "date",
"description": "Contract end date (ISO 8601)"
},
"renewal_date": {
"type": "string",
"format": "date",
"description": "Date the contract is up for renewal"
},
"total_value": {
"type": "number",
"minimum": 0,
"description": "Total contract value in the specified currency"
},
"currency": {
"type": "string",
"default": "USD",
"description": "ISO 4217 currency code"
},
"owner_id": {
"type": "string",
"description": "User ID of the contract owner"
},
"documents": {
"type": "array",
"description": "Attached contract documents",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"name": { "type": "string" },
"url": { "type": "string", "format": "uri" }
},
"required": ["id", "name"]
}
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the contract was created"
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the contract was last updated"
}
},
"required": ["id", "name", "status", "start_date"],
"additionalProperties": false
}