[BUG] rswag command generates invalid Swagger file
samuelegea opened this issue · comments
Samuel Egea commented
Describe the bug
I was running the rswag gem in the 2.3.1
version and was about to update do Rails 7, which requires rswag-spec >= 2.9.0
, but when I generate the swagger files with RAILS_ENV='test' rake rswag
, it runs without errors, but when I try to validate it, it throws several errors.
Most of the changes are like the image below, but I don't know where else I could look for a fix, or if we were just using the gem wrong.
Dependency versions
The version of are you using for:
- Rswag: 2.9.0, but the error comes from 2.3.2, hence why we locked up the version in 2.3.1
- RSpec: 3.12.0
- Rails: 7.0.4.3
- Ruby: 3.1.3