Skip to content

Commit

Permalink
Merge pull request #71 from DIAGNijmegen/1628_multiple_polygon_image
Browse files Browse the repository at this point in the history
Add the schemas for multi polygon mask answers
  • Loading branch information
miriam-groeneveld authored Feb 2, 2021
2 parents 3226bcf + 15c6cca commit d5360da
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
History
=======

0.3.3 (2021-02-02)
------------------

* Adds support for multiple polygon image answers

0.3.2 (2021-02-01)
------------------

Expand Down
2 changes: 1 addition & 1 deletion gcapi/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION = (0, 3, 2)
VERSION = (0, 3, 3)

__version__ = ".".join(map(str, VERSION))
8 changes: 8 additions & 0 deletions gcapi/schemas/answer.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,13 @@
},
"required": ["type", "version", "polygons"]
},
"MPIM": {
"type": "object",
"properties": {
"upload_session_pk": {"type": "string", "format": "uuid"}
},
"required": ["upload_session_pk"]
},
"CHOI": {"type": "number"},
"MCHO": {"type": "array", "items": {"type": "number"}},
"valid-answers": {
Expand All @@ -273,6 +280,7 @@
{"$ref": "#/definitions/POLY"},
{"$ref": "#/definitions/PIMG"},
{"$ref": "#/definitions/MPOL"},
{"$ref": "#/definitions/MPIM"},
{"$ref": "#/definitions/CHOI"},
{"$ref": "#/definitions/MCHO"}
]
Expand Down
8 changes: 8 additions & 0 deletions gcapi/schemas/post-answer.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@
},
"required": ["type", "version", "polygons"]
},
"MPIM": {
"type": "object",
"properties": {
"upload_session_pk": {"type": "string", "format": "uuid"}
},
"required": ["upload_session_pk"]
},
"CHOI": {"type": "number"},
"MCHO": {"type": "array", "items": {"type": "number"}},
"valid-answers": {
Expand All @@ -262,6 +269,7 @@
{"$ref": "#/definitions/POLY"},
{"$ref": "#/definitions/PIMG"},
{"$ref": "#/definitions/MPOL"},
{"$ref": "#/definitions/MPIM"},
{"$ref": "#/definitions/CHOI"},
{"$ref": "#/definitions/MCHO"}
]
Expand Down
3 changes: 2 additions & 1 deletion gcapi/schemas/reader-study.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
"Multiple points",
"Polygon",
"Polygon (saved as mask)",
"Multiple polygons"
"Multiple polygons",
"Multiple polygons (saved as mask)"
]
},
"image_port" : {
Expand Down

0 comments on commit d5360da

Please sign in to comment.