Thanks for the PR!
But why do you need set method inside response_with? There is attribute method to describe each attribute and example method for headers and body as json. E.g.:
response_with 200 do
example do
set :body, {
test: :test
}
end
attribute :test, type: :string
end
Thanks for the PR! But why do you need
set
method insideresponse_with
? There isattribute
method to describe each attribute andexample
method for headers and body as json. E.g.: