Newer
Older
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://gitlab.ow2.org/decoder/pkm-api/-/tree/master/api/pkm-config-schema.json",
"title": "PKM configuration file JSON Schema.",
"description": "PKM configuration file JSON Schema.",
"type": "object",
"properties":
{
"debug":
{
"type": "boolean",
"description": "enable/disable debug message",
"default": "false"
},
Gilles Mouchard
committed
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
"pkm_db":
{
"type": "string",
"description": "MongoDB PKM management database",
"default": "pkm"
},
"session_timeout":
{
"type": "string",
"description": "user's session timeout delay",
"default": "1 d"
},
"secret_file":
{
"type": "string",
"description": "path to secret file (>= 32 random chars)"
},
"git_root_directory":
{
"type": "string",
"description": "path to the root directory for all the Git working trees"
},
"git_max_parallel_read_files":
{
"type": "integer",
"description": "Max parallel read operations while reading files from a Git working tree"
},
"git_max_parallel_read_files":
{
"type": "integer",
"description": "Max parallel write operations while writing files from a Git working tree"
},
"git_remote_timeout":
{
"type": "string",
"description": "timeout delay when running a Git command which targets a remote server and possibly requires an authentication which may block the PKM server",
"default": "10 m"
},
"db_host":
{
"type": "string",
"description": "MongoDB host",
"default": "pkm-api_mongodb_1:27017"
},
"server_request_body_limit":
{
"type": "string",
"description": "Max size of request body that the REST server accepts",
"default": "256MB"
},
"project":
{
"type": "object",
"description": "Predefined content of project metadata actually stored in Collections Tools, TESTARSettings, and MethodologyStatus",
"properties":
{
"tools":
{
"$ref": "#/definitions/ProjectMetaDataPredefinedContent"
},
"testarSettings":
{
"$ref": "#/definitions/ProjectMetaDataPredefinedContent"
},
"methodologyStatus":
{
"$ref": "#/definitions/ProjectMetaDataPredefinedContent"
}
}
},
"schemas":
{
"type": "object",
Gilles Mouchard
committed
"descriptions": "set of schemas for the JSON documents for each collections in the MongoDB database",
"properties":
{
"Annotations":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"RawSourcecode":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"RawUML":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"sourcecodeC":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"sourcecodeCPP":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"sourcecodeJava":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"annotationsACSL":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"commentsC":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"commentsCPP":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"commentsjava":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"annotationsACSLPP":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"annotationsJML":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"UMLClasses":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"StateMachineModels":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"TESTARStateModels":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"TESTARTestResults":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"CompileCommands":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"TraceabilityMatrix":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"Logs":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"RawDocumentation":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"Documentation":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"CVEList":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"RawBinaries":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"GitWorkingTree":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"Tools":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"Invocations":
{
Gilles Mouchard
committed
"$ref": "#/definitions/CollectionSchema"
},
"TESTARSettings":
{
"$ref": "#/definitions/CollectionSchema"
},
"MethodologyStatus":
{
"$ref": "#/definitions/CollectionSchema"
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
},
"Reviews":
{
"$ref": "#/definitions/CollectionSchema"
}
}
},
"types":
{
"type": "object",
"descriptions": "set of default artefact types from the GUI front-end point of view for each collections in the MongoDB database",
"properties":
{
"Annotations":
{
"type": "string"
},
"RawSourcecode":
{
"type": "string"
},
"RawUML":
{
"type": "string"
},
"sourcecodeC":
{
"type": "string"
},
"sourcecodeCPP":
{
"type": "string"
},
"sourcecodeJava":
{
"type": "string"
},
"annotationsACSL":
{
"type": "string"
},
"commentsC":
{
"type": "string"
},
"commentsCPP":
{
"type": "string"
},
"commentsjava":
{
"type": "string"
},
"annotationsACSLPP":
{
"type": "string"
},
"annotationsJML":
{
"type": "string"
},
"UMLClasses":
{
"type": "string"
},
"StateMachineModels":
{
"type": "string"
},
"TESTARStateModels":
{
"type": "string"
},
"TESTARTestResults":
{
"type": "string"
},
"CompileCommands":
{
"type": "string"
},
"TraceabilityMatrix":
{
"type": "string"
},
"Logs":
{
"type": "string"
},
"RawDocumentation":
{
"type": "string"
},
"Documentation":
{
"type": "string"
},
"CVEList":
{
"type": "string"
},
"RawBinaries":
{
"type": "string"
},
"GitWorkingTree":
{
"type": "string"
},
"Tools":
{
"type": "string"
},
"Invocations":
{
"type": "string"
},
"TESTARSettings":
{
"type": "string"
},
"MethodologyStatus":
{
"type": "string"
},
"Reviews":
{
"type": "string"
}
}
},
"file_types":
{
"type": "array",
"description": "set of rules to guess missing PKM file properties and destination collection",
Gilles Mouchard
committed
"items":
{
"$ref": "#/definitions/FileTypeRule"
}
}
},
"definitions":
{
"ProjectMetaDataPredefinedContent":
{
"type": "object",
"properties":
{
"files":
Gilles Mouchard
committed
"type": "array",
"items":
{
"type": "string",
"description": "path to a JSON file"
}
Gilles Mouchard
committed
"file":
Gilles Mouchard
committed
"type": "string",
"description": "path to a JSON file"
Gilles Mouchard
committed
"oneOf":
[
{ "required" : [ "files" ] },
{ "required" : [ "file" ] }
]
}
},
"CollectionSchema":
{
"type": "object",
"properties":
{
"file":
Gilles Mouchard
committed
"type": "string",
"description": "path to the JSON schema file"
Gilles Mouchard
committed
"enable":
Gilles Mouchard
committed
"type": "boolean",
"description": "enable/disable schema validation"
Gilles Mouchard
committed
}
},
"FileTypeRule":
{
"type": "object",
"properties":
Gilles Mouchard
committed
"suffixes":
Gilles Mouchard
committed
"type": "array",
"items":
{
"type": "string",
"description": "filename suffix",
"example": ".java"
Gilles Mouchard
committed
}
},
"format":
{
"type": "string",
"description": "file format",
"enum": [ "text", "binary" ]
},
"mime_types":
{
"type": "array",
"items":
{
"type": "string",
"description": "MIME type",
"example": "text/x-java-source"
}
Gilles Mouchard
committed
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
},
"type":
{
"type": "string",
"description": "type of the file from the GUI front-end point of view",
"enum": [ "Code", "Diagram", "Doc", "Annotation", "Comment", "Log" ]
},
"collection":
{
"type": "string",
"description": "MongoDB collection where to dispatch the file",
"enum":
[
"Annotations",
"RawSourcecode",
"RawUML",
"sourcecodeC",
"sourcecodeCPP",
"sourcecodeJava",
"annotationsACSL",
"annotationsACSLPP",
"annotationsJML",
"commentsC",
"commentsCPP",
"commentsjava",
"RawDocumentation",
"Documentation",
"UMLClasses",
"UMLStateMachines",
"TESTARStateModels",
"TESTARTestResults",
"Logs",
"TraceabilityMatrix",
"Project",
"CompileCommands",
"OpenJMLAnalysis",
"CVEList",
"RawBinaries",
"GitWorkingTrees",
"Tools",
"Invocations",
"TESTARSettings",
"MethodologyStatus",
"Reviews"
Gilles Mouchard
committed
]
}
}
}
}
}