We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My API contains one method returning an file:
[WebGet(BodyStyle = WebMessageBodyStyle.WrappedRequest, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] [SwaggerWcfResponse(HttpStatusCode.OK, ResponseTypeOverride = typeof(Stream))] [SwaggerWcfResponse(HttpStatusCode.BadRequest, ResponseTypeOverride = typeof(RestError))] [SwaggerWcfContentTypes(ProduceTypes = new string[] { "image/jpeg", "image/png" })] Stream GetLiveImageAsStream(string cameraID, string imageType, ImageFormat format);
If I understand the Swagger 2.0 specification correctly, this should be exported with "type" = "file".
The current implementation returns "type" = "string" and "format" = "stream".
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My API contains one method returning an file:
If I understand the Swagger 2.0 specification correctly, this should be exported with "type" = "file".
The current implementation returns "type" = "string" and "format" = "stream".
The text was updated successfully, but these errors were encountered: