Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/53.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 如何在swagger rails中添加msgpack支持_Ruby On Rails_Ruby_Swagger_Msgpack - Fatal编程技术网

Ruby on rails 如何在swagger rails中添加msgpack支持

Ruby on rails 如何在swagger rails中添加msgpack支持,ruby-on-rails,ruby,swagger,msgpack,Ruby On Rails,Ruby,Swagger,Msgpack,我在rails应用程序中使用了swagger文档,用于API文档。它工作得很好。现在我在API响应中添加了msgpack,以提高速度,这也很好 但我现在面临的问题是,swagger docs没有解压缩我发送的响应,因此它没有显示响应 这是我的API响应 render json: {:success=>true, :all_models=>all_models,:page=>page}.to_msgpack, :status=>200 如何在swagger中添加解包响应或

我在rails应用程序中使用了
swagger文档
,用于API文档。它工作得很好。现在我在API响应中添加了
msgpack
,以提高速度,这也很好

但我现在面临的问题是,
swagger docs
没有解压缩我发送的响应,因此它没有显示响应

这是我的API响应

render json: {:success=>true, :all_models=>all_models,:page=>page}.to_msgpack, :status=>200

如何在swagger中添加解包响应或添加msgpack?

可以显示swagger代码吗?是的,当然。。。。。。。。。