A new parameter 'body' gets added for hash type params
See original GitHub issueSpecs
- Swagger 2.0
- Widdershins installation from the branch v3.0
I am using parameters of type hash for our APIs. Swagger generates the JSON as given below
"paths":{"/betaweb/users/sign_in":{"post":{"description":"User Authentication API","produces":["application/json"],"consumes":["application/json"],"parameters":[{"in":"formData","name":"user[email]","description":"User email","type":"string","required":false},{"in":"formData","name":"user[username]","type":"string","required":false},{"in":"formData","name":"user[password]","description":"User Password","type":"string","required":true}],"responses":{"201":{"description":"Created"},"422":{"description":"Invalid Login Credentials"}},"tags":["users"],"operationId":"User Authentication API"}},
But my Slate Markdown adds a parameter body to my request as below.

I couldn’t figure out to remove the body parameter.
And also, the password parameter required is set to true in the Swagger JSON. But the in the documentation, required field for password is set to false
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (6 by maintainers)

Top Related StackOverflow Question
Thanks a lot for the update Mike!
Widdershins v3.0.0 has just been released.