Skip to content

Releases: skryukov/skooma

v0.3.3

14 Oct 17:29
6742cb1
Compare
Choose a tag to compare

Fixed

  • Fix coverage for Minitest. (@skryukov)
  • Updated example comment for Skooma::Minitest class. (@artyomlagun)

New Contributors

Full Changelog: v0.3.2...v0.3.3

v0.3.2

24 Jun 06:42
4b7bb16
Compare
Choose a tag to compare

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

Full Changelog: v0.3.1...v0.3.2

v0.3.1

12 Apr 05:24
540ed03
Compare
Choose a tag to compare

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

09 Apr 06:31
25c5da5
Compare
Choose a tag to compare

Changed

  • BREAKING CHANGE: Pass headers parameter to registered BodyParsers. (@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

  • @ursm made their first contribution in #19

Full Changelog: v0.2.2...v0.3.0

v0.2.2

04 Jan 11:42
2da945a
Compare
Choose a tag to compare

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

v0.2.1

23 Oct 19:57
4f7fdf4
Compare
Choose a tag to compare

Fixed

  • Raise error when parameter attributes misses required keys. (@skryukov)
  • Fix output format. (@skryukov)

Full Changelog: v0.2.0...v0.2.1

v0.2.0

22 Oct 21:31
7870e48
Compare
Choose a tag to compare

Added

  • Add minitest and rake-test support. (@skryukov)
  • Add discriminator keyword support. (@skryukov)

Fixed

Full Changelog: v0.1.0...v0.2.0

v0.1.0

22 Oct 21:30
5abfcd9
Compare
Choose a tag to compare

Added

Full Changelog: https://github.com/skryukov/skooma/commits/v0.1.0