Fixed content dicts to be valid OpenAPI

For functions that return JPEGs, we were
 using "content_type": "image/jpeg"
 instead we should use "content": { "image/jpeg": {}}
This commit is contained in:
Richard 2021-07-13 22:52:10 +01:00
parent 9892c7079a
commit 50ad9d4369
3 changed files with 12 additions and 5 deletions

View file

@ -14,14 +14,14 @@ class LSTImageProperty(PropertyView):
responses = {
200: {
"content_type": "image/png",
"content": { "image/jpeg": {} },
"description": "Lens-shading table in RGB format",
}
}
def get(self):
"""
Get the stage geometry.
Get the lens shading table as an image.
"""
microscope = find_component("org.openflexure.microscope")