-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
168 lines (168 loc) · 4.43 KB
/
schema.json
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Archilens",
"description": "An Archilens specification",
"type": "object",
"properties": {
"lastUpdateAt": {
"description": "The date of the last update of the document",
"type": "string"
},
"domains": {
"description": "The list of domains",
"type": "array",
"items": {
"$ref": "#/$defs/domain"
}
}
},
"$defs": {
"domain": {
"type": "object",
"properties": {
"uid": {
"description": "The unique identifier of the domain",
"type": "string"
},
"id": {
"description": "The identifier of the domain in its domain or at the root level",
"type": "string"
},
"label": {
"description": "The label of the domain",
"type": "string"
},
"domains": {
"description": "The list of sub-domains",
"type": "array",
"items": {
"$ref": "#/$defs/domain"
}
},
"modules": {
"description": "The list of modules",
"type": "array",
"items": {
"$ref": "#/$defs/module"
}
},
"components": {
"description": "The list of components",
"type": "array",
"items": {
"$ref": "#/$defs/component"
}
}
},
"required": ["uid", "label"]
},
"module": {
"type": "object",
"properties": {
"uid": {
"description": "The unique identifier of the module",
"type": "string"
},
"id": {
"description": "The identifier of the module in its domain",
"type": "string"
},
"mtype": {
"description": "The type of the module",
"type": "string"
},
"label": {
"description": "The label of the module",
"type": "string"
},
"ownedResources": {
"description": "The list of resources owned by the module",
"type": "array",
"items": {
"$ref": "#/$defs/resource"
}
},
"components": {
"description": "The list of components",
"type": "array",
"items": {
"$ref": "#/$defs/component"
}
},
"relations": {
"description": "The list of relations between this module and other modules or components",
"type": "array",
"items": {
"$ref": "#/$defs/relation"
}
}
},
"required": ["uid", "mtype", "label"]
},
"component": {
"type": "object",
"properties": {
"uid": {
"description": "The unique identifier of the component",
"type": "string"
},
"id": {
"description": "The identifier of the component in its module",
"type": "string"
},
"ctype": {
"description": "The type of the component",
"type": "string"
},
"label": {
"description": "The label of the component",
"type": "string"
},
"resources": {
"description": "The list of resources stored in the component",
"type": "array",
"items": {
"$ref": "#/$defs/resource"
}
},
"relations": {
"description": "The list of relations between this component and other modules or components",
"type": "array",
"items": {
"$ref": "#/$defs/relation"
}
}
},
"required": ["uid", "ctype"]
},
"relation": {
"type": "object",
"properties": {
"target": {
"description": "The unique identifier of the target module or component",
"type": "string"
},
"description": {
"description": "The description of the relation",
"type": "string"
},
"rtype": {
"description": "The type of the relation",
"type": "string"
},
"resources": {
"description": "The list of resources shared between the component and the target component",
"type": "array",
"items": {
"$ref": "#/$defs/resource"
}
}
},
"required": ["target"]
},
"resource": {
"type": "string"
}
},
"required": ["lastUpdateAt"]
}