Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSwagger support for operations with no response body #627
Comments
|
@salceson How about Here is a definition example: |
|
I'm sorry to take this long to response. Yes, with |
|
also see swagger-ui PR into swagger-ui 3.0.7: link |
|
if you want more info on |


We have an endpoint for validating a JSON file. When the file is valid we return HTTP status 200 with no response body. Currently it's not possible with Scalatra's Swagger support to register properly such an operation, although according to Swagger spec, it can be done.
Current workaround was to create a marker trait
NoResponseand register the operation with this trait as response model.I'd suggest we add possibility to handle such situations in better way :)
Also I'd like to thank you for your awesome work on this framework, especially for my request with Swagger that was resolved in the latest release👍 .