Skip to content

Commit edbad1e

Browse files
committed
Add Boolean as a type of input/output
1 parent d26f8c7 commit edbad1e

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

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"},

0 commit comments

Comments
 (0)