-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathmetadata.json
More file actions
92 lines (92 loc) · 2.4 KB
/
metadata.json
File metadata and controls
92 lines (92 loc) · 2.4 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
87
88
89
90
91
92
{
"$udmi_version": "1.5.2",
"title": "Metadata",
"description": "[Metadata](../docs/specs/metadata.md) is a description about the device: a specification about how the device should be configured and expectations about what the device should be doing. Defined by `metadata.json`",
"$section": "Site Model",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"required": [
"timestamp",
"version",
"system"
],
"properties": {
"timestamp": {
"description": "RFC 3339 timestamp UTC the data was generated",
"type": "string",
"format": "date-time",
"examples": ["2019-01-17T14:02:29.364Z"]
},
"version": {
"description": "Version of the UDMI schema for this file",
"type": "string"
},
"upgraded_from": {
"description": "Original version of the UDMI schema for this file",
"type": "string"
},
"hash": {
"description": "DEPRECATED",
"type": "string",
"pattern": "^[0-9a-z]{8}$"
},
"operation": {
"description": "Used for model update operations (so not a model proper), e.g. DELETE or BIND operations",
"$ref": "file:common.json#/definitions/operation"
},
"cloud": {
"$ref": "file:model_cloud.json#",
"$presentation": {
"section": "cloud"
}
},
"system": {
"$ref": "file:model_system.json#",
"$presentation": {
"section": "system"
}
},
"externals": {
"$ref": "file:model_externals.json#"
},
"gateway": {
"$ref": "file:model_gateway.json#",
"$presentation": {
"section": "gateway"
}
},
"discovery": {
"$ref": "file:model_discovery.json#"
},
"localnet": {
"$ref": "file:model_localnet.json#",
"$presentation": {
"section": "localnet"
}
},
"testing": {
"$ref": "file:model_testing.json#"
},
"features": {
"$ref": "file:model_features.json#"
},
"pointset": {
"$ref": "file:model_pointset.json#",
"$presentation": {
"section": "pointset"
}
},
"structure": {
"existingJavaType": "java.util.HashMap<String, DiscoveryEvents>",
"patternProperties": {
"^[a-z][a-z0-9]*(_[a-z0-9]+)*$": {
"$ref": "file:events_discovery.json"
}
}
},
"policy": {
"$ref": "file:model_policy.json#"
}
}
}