forked from finos/FDC3
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathproduct.schema.json
More file actions
61 lines (61 loc) · 1.83 KB
/
product.schema.json
File metadata and controls
61 lines (61 loc) · 1.83 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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://fdc3.finos.org/schemas/next/context/product.schema.json",
"type": "object",
"title": "Product",
"description": "@experimental context type representing a tradable product. To be used with OMS and EMS systems.\n\nThis type is currently only loosely defined as an extensible context object, with an optional instrument field.\n\nThe Product schema does not explicitly include identifiers in the id section, as there is not a common standard for such identifiers. Applications can, however, populate this part of the contract with custom identifiers if so desired.",
"allOf": [
{
"type": "object",
"properties": {
"type": {
"const": "fdc3.product"
},
"id": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"title": "Product Identifiers",
"description": "One or more identifiers that refer to the product. Specific key names for systems are expected to be standardized in future."
},
"name": {
"type": "string",
"title": "Product Name",
"description": "A human-readable summary of the product."
},
"instrument": {
"$ref": "instrument.schema.json",
"title": "Product Instrument",
"description": "A financial instrument that relates to the definition of this product"
},
"notes": {
"type": "string",
"title": "Product Notes",
"description": "Additional notes or comments about the product."
}
},
"required": [
"type",
"id"
],
"additionalProperties": true
},
{ "$ref": "context.schema.json#/definitions/BaseContext" }
],
"examples": [
{
"type": "fdc3.product",
"notes": "...",
"id": {
"productId": "ABC123"
},
"instrument": {
"type": "fdc3.instrument",
"id": {
"ticker": "MSFT"
}
}
}
]
}