-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathseqpair.json
53 lines (53 loc) · 1.43 KB
/
seqpair.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
{
"$schema": "http://json-schema.org/schema#",
"id": "https://raw.githubusercontent.com/evoldoers/machineboss/master/schema/seqpair.json",
"description": "MachineBoss sequence-pair schema",
"type": "object",
"oneOf": [
{
"required": ["input","output"],
"additionalProperties": false,
"properties": {
"input": {
"$ref": "https://raw.githubusercontent.com/evoldoers/machineboss/master/schema/namedsequence.json"
},
"output": {
"$ref": "https://raw.githubusercontent.com/evoldoers/machineboss/master/schema/namedsequence.json"
},
"meta": { }
}
},
{
"required": ["alignment"],
"additionalProperties": false,
"properties": {
"input": { "$ref": "#/definitions/nameWithOptionalSequence" },
"output": { "$ref": "#/definitions/nameWithOptionalSequence" },
"alignment": {
"type": "array",
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": { "type": "string" }
},
"meta": { }
}
}
}
],
"definitions": {
"nameWithOptionalSequence": {
"type": "object",
"required": ["name"],
"additionalProperties": false,
"properties": {
"name": { "type": "string" },
"sequence": {
"type": "array",
"items": { "type": "string" }
}
}
}
}
}