新手问题 Grape swagger ui 展示 Array [Hash] 字段名称不正确

QETHAN · January 02, 2018 · Last by pynix replied at January 02, 2018 · 1117 hits

optional :comments, type: Array do 
  requires :content, type: String, allow_blank: false 
end

正确的应该是 comments[][content], 请问这是 swagger 的 bug 吗

丝袜 有很多 bug。。。。

You need to Sign in before reply, if you don't have an account, please Sign up first.