Releases: skryukov/skooma
Releases · skryukov/skooma
v0.3.3
Fixed
- Fix coverage for Minitest. (@skryukov)
- Updated example comment for
Skooma::Minitest
class. (@artyomlagun)
New Contributors
- @artyomlagun made their first contribution in #32
Full Changelog: v0.3.2...v0.3.3
v0.3.2
Fixed
- Fix deprecation
MiniTest::Unit.after_tests is now Minitest.after_run
. (@barnaclebarnes) - Exclude test helpers from eager loading. (@skryukov)
- Update oas-3.1 base schema. (@skryukov)
New Contributors
- @barnaclebarnes made their first contribution in #24
Full Changelog: v0.3.1...v0.3.2
v0.3.1
Added
-
Add coverage for tested API operations. (@skryukov)
# spec/rails_helper.rb RSpec.configure do |config| # To enable coverage, pass `coverage: :report` option, # and to raise an error when an operation is not covered, pass `coverage: :strict` option: config.include Skooma::RSpec[Rails.root.join("docs", "openapi.yml"), coverage: :report], type: :request end
$ bundle exec rspec # ... OpenAPI schema /openapi.yml coverage report: 110 / 194 operations (56.7%) covered. Uncovered paths: GET /api/uncovered 200 GET /api/partially_covered 403 # ...
Full Changelog: v0.3.0...v0.3.1
v0.3.0
Changed
-
BREAKING CHANGE: Pass
headers
parameter to registeredBodyParsers
. (@skryukov)# Before: Skooma::BodyParsers.register("application/xml", ->(body) { Hash.from_xml(body) }) # After: Skooma::BodyParsers.register("application/xml", ->(body, headers:) { Hash.from_xml(body) })
Fixed
- Fix wrong path when combined with Rails exceptions_app. (@ursm)
New Contributors
Full Changelog: v0.2.2...v0.3.0
v0.2.2
Added
- Add support for APIs mounted under a path prefix. (@skryukov)
# spec/rails_helper.rb
RSpec.configure do |config|
# ...
path_to_openapi = Rails.root.join("docs", "openapi.yml")
# pass path_prefix option if your API is mounted under a prefix:
config.include Skooma::RSpec[path_to_openapi, path_prefix: "/internal/api"], type: :request
end
Changed
- Bump
json_skooma
version to~> 0.2.0
. (@skryukov)
Fixed
- Better checks to automatic request/response detection to prevent methods overrides via RSpec helpers (i.e.
subject(:response)
). (@skryukov) - Fail response validation when expected response code or
responses
keyword aren't listed. (@skryukov)
Full Changelog: v0.2.1...v0.2.2