Skip to content

Commit e20b4fb

Browse files
authored
Merge branch 'master' into postman-api-schema
2 parents eb965ff + edbad1e commit e20b4fb

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"workflow"
1313
],
1414
"description": "Set of JSON schemas for the SPINE Virtual Laboratory",
15-
"version": "3.2.0-dev.2",
15+
"version": "3.2.0",
1616
"dependencies": {
1717
"ajv": "^6.12.2"
1818
},

schemas/core.schema.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"$id" : "#spineTypeInOut",
4343
"description": "SPINE Type",
4444
"type": "string",
45-
"enum": ["String","Number","imageFileInOut","imageEntityInOut",
45+
"enum": ["String","Number","Boolean","imageFileInOut","imageEntityInOut",
4646
"auxiliaryImageFile","lookUpTable","lookUpTableDescription","roiInOut","annotationInOut",
4747
"roiWithAnnotationsInOut","annotationTableDefinitionInputOutput", "annotationFormDefinitionInputOutput",
4848
"annotationTableDataInOut", "annotationFormDataInOut","polyRoiInOut"]
@@ -123,6 +123,23 @@
123123
]
124124
},
125125

126+
"Boolean": {
127+
"$id": "#Boolean",
128+
"description": "Schema defining Boolean as input or output",
129+
"allOf":[
130+
{"$ref": "#/definitions/inputOutput_spine"},
131+
{
132+
"properties": {
133+
"type":{
134+
"type": "boolean",
135+
"enum": ["Boolean"]
136+
}
137+
},
138+
"required": ["type"]
139+
}
140+
]
141+
},
142+
126143
"imageFileInOut_Type": {
127144
"$id" : "#imageFileInOut_Type",
128145
"description": "SPINE Image Type for imageFile",
@@ -541,6 +558,7 @@
541558
{"$ref": "#/definitions/roiWithAnnotationsInOut"},
542559
{"$ref": "#/definitions/String"},
543560
{"$ref": "#/definitions/Number"},
561+
{"$ref": "#/definitions/Boolean"},
544562
{"$ref": "#/definitions/imageFileInOut"},
545563
{"$ref": "#/definitions/lookupTableInOut"},
546564
{"$ref": "#/definitions/lookUpTableDescriptionInOut"},

schemas/tool.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"$id": "#layoutViewersType",
4242
"description": "Type of viewers layout.",
4343
"type": "string",
44-
"enum": ["SINGLE","1M1R_IN_ROW","SINGLE_WITH_WIDGET_PANEL", "1M4R", "1M2R", "1M2R_WIDGETS","1M1R_ARROWS", "ROW"]
44+
"enum": ["SINGLE","1M1R_IN_ROW","SINGLE_WITH_WIDGET_PANEL", "1M4R", "1M2R", "1M2R_WIDGETS","1M1R_ARROWS", "ROW","VERTICAL_FORM", "SIX_PACK","3_BY_3","3_BY_6", "2_BY_2"]
4545
},
4646

4747
"possibleValueInAnnotationTable": {
@@ -802,4 +802,4 @@
802802
"oneOf": [
803803
{"$ref": "#toolBasicProperties"}
804804
]
805-
}
805+
}

0 commit comments

Comments
 (0)