This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
schema_input.json
63 lines (63 loc) · 1.92 KB
/
schema_input.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
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/nextflow-io/nf-validation/master/plugins/nf-validation/src/testResources/schema_input.json",
"title": "Samplesheet validation schema",
"description": "Schema for the samplesheet used in this pipeline",
"type": "array",
"items": {
"type": "object",
"properties": {
"metaString": {
"type": "string",
"meta": ["string1","string2"],
"default": "value",
"dependentRequired": ["metaInteger", "metaBoolean"]
},
"metaInteger": {
"type": "integer",
"meta": ["integer1","integer2"],
"default": 5
},
"metaBoolean": {
"type": "boolean",
"meta": ["boolean1","boolean2"],
"default": true
},
"string": {
"type": "string"
},
"number": {
"type": "number"
},
"boolean": {
"type": "boolean"
},
"file": {
"type": "string",
"format": "file-path-exists",
"pattern": "^.*\\.txt$"
},
"directory": {
"type": "string",
"format": "directory-path-exists"
},
"path": {
"type": "string",
"format": "path-exists"
},
"uniqueField": {
"type": "string",
"unique": true
},
"uniqueDependentField": {
"type": "integer",
"unique": ["uniqueField"]
},
"nonExistingField": {
"type": "string",
"default": "itDoesExist"
}
},
"required": ["string", "number", "boolean"]
}
}