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:
parent
9892c7079a
commit
50ad9d4369
3 changed files with 12 additions and 5 deletions
|
|
@ -71,7 +71,7 @@ class RAMCaptureAPI(ActionView):
|
|||
args = BasicCaptureArgs()
|
||||
responses = {
|
||||
200: {
|
||||
"content_type": "image/jpeg",
|
||||
"content": { "image/jpeg": {} },
|
||||
"description": "A JPEG image, representing the capture"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue