-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Hey!
If I upload a file using the as: :json post method, I get this error
ArgumentError: missing keywords: :io, :filenamebut, not use as: :json, the file is loading successfully, but if there is a body required parameter in the openapi schema, then I get the error body id required
code:
describe "POST" do
let_it_be(:test_file) { file_fixture("image.jpeg") }
let_it_be(:file_upload) { fixture_file_upload(test_file, "image/jpeg") }
let(:body) do
{
...
image: file_upload
}
end
subject { post "path", params: body, as: :json }
context "success" do
it { is_expected.to conform_schema(201) }
end
end
endskryukov
Metadata
Metadata
Assignees
Labels
No labels