{"action":"opened","issue":{"url":"https://api.github.com/repos/domaindrivendev/rswag/issues/91","repository_url":"https://api.github.com/repos/domaindrivendev/rswag","labels_url":"https://api.github.com/repos/domaindrivendev/rswag/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/domaindrivendev/rswag/issues/91/comments","events_url":"https://api.github.com/repos/domaindrivendev/rswag/issues/91/events","html_url":"https://github.com/domaindrivendev/rswag/issues/91","id":248107203,"number":91,"title":"How to include body prams for put api method?","user":{"login":"zlesnr","id":29264964,"avatar_url":"https://avatars1.githubusercontent.com/u/29264964?v=4","gravatar_id":"","url":"https://api.github.com/users/zlesnr","html_url":"https://github.com/zlesnr","followers_url":"https://api.github.com/users/zlesnr/followers","following_url":"https://api.github.com/users/zlesnr/following{/other_user}","gists_url":"https://api.github.com/users/zlesnr/gists{/gist_id}","starred_url":"https://api.github.com/users/zlesnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zlesnr/subscriptions","organizations_url":"https://api.github.com/users/zlesnr/orgs","repos_url":"https://api.github.com/users/zlesnr/repos","events_url":"https://api.github.com/users/zlesnr/events{/privacy}","received_events_url":"https://api.github.com/users/zlesnr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-04T20:19:05Z","updated_at":"2017-08-04T20:19:05Z","closed_at":null,"body":"I've got a test that has the following:\r\n\r\n```ruby\r\n require 'swagger_helper'\r\n\r\ndescribe 'Port API' do\r\n\r\n  path '/port/admin_state' do\r\n    put 'Sets the admin state for a port' do\r\n      security [ Token: [] ]\r\n      produces 'application/json'\r\n      consumes 'application/json'\r\n\r\n      let(:api_key) { FactoryGirl.create(:api_key) }\r\n      let(:Authorization) { \"Token token=\\\"#{api_key.access_token}\\\"\" }\r\n\r\n      parameter name: :device_id,\r\n        in: :body,\r\n        type: 'string',\r\n        required: true,\r\n        description: 'Numeric device identifier'\r\n      \r\n      before do |example|\r\n        @device = FactoryGirl.create(:device)\r\n        @port = FactoryGirl.create(:port, device: @device)\r\n        submit_request(example.metadata)\r\n      end\r\n\r\n      response '200', 'A port was toggled successfully' do\r\n        let(:device_id) { @device.id }\r\n\r\n        schema type: :object,\r\n          properties: {\r\n            status: { type: :string },\r\n            error: { type: :string }\r\n          }\r\n\r\n        it do\r\n          data = JSON.parse(response.body)\r\n          p data\r\n          expect(data.class).to be(Hash)\r\n          expect(response.status).to eq(200)\r\n        end\r\n      end\r\n    end\r\n\r\n  end\r\nend\r\n\r\n```\r\n\r\nFor my get operations, all of the parameters have been in the query string.  For this particular method, I'm looking to use body parameters in the request.  I see when executing code against the endpoint, that the `params` object does indeed get populated with the params I've sent in the body.  However, when testing with rswag, I don't see those parameters submitted in the request.  Furthermore, I don't see anything related to my body parameters in the `example.metadata` object.  How do I get the body params to get submitted as json to the endpoint?"}}
{"actor":{"display_login":"zlesnr"}}