rspec-openapi
rspec-openapi copied to clipboard
Generate OpenAPI schema from RSpec request specs
Closes #65 TODO - [x] Nested reference support - [ ] Add test fixture for nested reference
## Summary When rspec-openapi detects `$ref` in the existing item to be modified, rspec-openapi update the referenced item in `components` section. ## Basic example Let's say we have the openapi...
## Current Behaviour When generating a schema with a response with an empty array, the item property is marked as nullable. ```yml responses: '200': content: application/json: schema: type: array items:...
When running `OPENAPI=1 bundle exec rspec` any routes that are listed after mounting engine to root `mount Breaker::Engine => "/"` will generate `No route matched for` RuntimeError: ``` Failures: 1)...
To reduce efforts on code format and code review, let's introduce RuboCop. This PR fixes some warning-level code offenses. Other minor offenses will be addressed in subsequent PRs.
Great gem, thank you for sharing! Here's a bug and a suggested feature to fix it. The below is pseudo-code -- apologies if it doesn't work. **Steps to reproduce:** In...
My use case is generating different openapi files from different RSpec request files. The `RSpec::OpenAPI.path` proc is great to export YAML to different files, but I was surprised to see...
While using this gem in one of my recents projects, I have faced the following issue: A specific controller action can return a `200` and a `401` when the client...
I believe many people use `id` or `uuid` in their schematics. And always, this field is read-only. I suggest to automatically set `readOnly: true` for such fields.
I was giving a try to rspec-openapi and after trying I'm getting an error when returning a pdf attachment like this: ```ruby respond_to do |format| format.pdf do # params[:content] can...