example :
rake rswag:specs:swaggerize PATTERN="spec/controllers/api/v1/admin/\*"
or:
rake rswag:specs:swaggerize pattern="spec/controllers/api/v1/admin/authentications_controller_spec.rb"
or :
rake rswag:specs:swaggerize pattern="spec/controllers/api/v1/\**/\*_spec.rb"
by considering the above code, the swagger.YAML file generates empty. so how I must use a pattern?
I think you should use the master
branch.
gem 'rswag', github: 'rswag/rswag', branch: 'master'
then
rake rswag:specs:swaggerize PATTERN="spec/controllers/**/*_spec.rb"
Hope it works as expected ;)