You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been having problems with the swagger documentation generated by this gem. Specifically the auto-generated swagger documentation doesn't show the body for the requests.
Version Information
OS: Windows 11, WSL2 with Ubuntu20.04
ruby: 2.7.4
node: 12.22.7
potassium: 6.4.0
power-api: 1.0.0
Steps to reproduce
gem install potassium
potassium create test-power-api
App created with following options:
cd test-power-api
bundle exec rails g model Banana size:float weight:float
rake db:migrate
bundle exec rails g power_api:controller Banana
bundle exec rails rswag:specs:swaggerize
bundle exec rails s
Go to localhost:3000/api-docs
Expected result
The swagger documentation for POST /bananas should show an example body, for example, like the following documentation:
Actual result
The swagger documentation for POST /bananas doesn't show an example body:
Thanks!
The text was updated successfully, but these errors were encountered:
Hello!
I have been having problems with the swagger documentation generated by this gem. Specifically the auto-generated swagger documentation doesn't show the body for the requests.
Version Information
2.7.4
12.22.7
6.4.0
1.0.0
Steps to reproduce
gem install potassium
potassium create test-power-api
cd test-power-api
bundle exec rails g model Banana size:float weight:float
rake db:migrate
bundle exec rails g power_api:controller Banana
bundle exec rails rswag:specs:swaggerize
bundle exec rails s
localhost:3000/api-docs
Expected result
The swagger documentation for
POST /bananas
should show an example body, for example, like the following documentation:Actual result
The swagger documentation for
POST /bananas
doesn't show an example body:Thanks!
The text was updated successfully, but these errors were encountered: