Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 2, 2025

This PR contains the following updates:

Package Change Age Confidence
openapi_first (changelog) "~>2.0" -> "~>3.0" age confidence

Release Notes

ahx/openapi_first (openapi_first)

v3.1.1

  • Changed: Return uniqe errors in default error responses

v3.1.0

Compare Source

openapi_first/test
Changed
  • OpenapiFirst::Test now raises OpenapiFirst::Test::UnknownQueryParameterError when it sees unknown query parameters. Note that OpenapiFirst ("core") still allows unknown query parameters.
  • OpenapiFirst::Test does not track requests/responses unless the OAD was registered via OpenapiFirst::Test.register (or OpenapiFirst.register)

v3.0.1

Compare Source

  • Add missing gem dependency "drb", which is no longer installed by default with newer rubies. This is used in openapi_first/test to make parallel tests work.

v3.0.0

Compare Source

openapi_first
Changed
  • Breaking: Trailing slashes are no longer ignored in dynamic paths. See #​403.
    Before this change GET /things/24/ matched /things/{id}:, but it no longer does.
  • Breaking: Failure type :response_not_found was split into two more specific types :response_content_type_not_found and :response_status_not_found. This should be mostly internal stuff. So if your custom error response used response_not_found, you will have to adapt.
  • Deprecated configuration fields request_validation_raise_error and response_validation_raise_error. Please pass the raise_error: option to the middlewares directly.
Added
  • Added support to register OADs globally via:
    OpenapiFirst.configure { |config| config.register('openapi.yaml')  }
    This makes the spec argument in middlewares optional and removes the necessity to load the OAD in the same place where you use the middlewares and adds a cache for parsed OADs.
Removed
  • Removed deprecated methods which produced a warning since 2.0.0.
  • Removed OpenapiFirst::Configuration#clone. Use #child instead.
  • It's no longer supported to remove locally added hooks during runtime.
Fixed
  • Update dependency openapi_parameters to >= 0.7.0, because that version supports unpacking parameters the use style: deepObject with explode: true.
  • Make OpenapiFirst::Test.setup more robust by adding OpenapiFirst::Configuration#child so it does not matter if you load our OAD before callig OpenapiFirst::Test.setup.
openapi_first/test
Changed
  • OpenapiFirst::Test.app now returns an instance of OpenapiFirst::Test::App, instead of Rack::Builer and delegates methods other than #call to the original app. This wrapper adds validated requests, responses to the rack env at env[OpenapiFirst::Test::REQUEST], env[OpenapiFirst::Test::RESPONSE]. This makes it possible to test Rails engines. Thanks to Josh! See #​410.
  • OpenapiFirst::Test now falls back to using globally registered OADs if nothing was registered inside OpenapiFirst::Test.setup.
  • 401er and 500er status are okay to not be described.
Added
  • The Coverage feature in OpenapiFirst::Test now supports parallel tests via a DRB client/sever. Thanks to Richard! See #​394.
  • Added OpenapiFirst::Test Configuration options which are useful when adopting OpenAPI:
    • ignore_unknown_response_status = true to make API coverage no longer complain about undefined response statuses it sees during a test run.
    • minimum_coverage= is no longer deprecated. This is useful when gradually adopting OpenAPI
  • ignored_unknown_status= to overwrite the whole list of ignored unknown status at once
Removed
  • Removed internally used Test::Coverage.current_run, .plans, .install, .uninstall. If you are using these, use OpenapiFirst::Test.setup instead.
Fixed
  • Make OpenapiFirst::Test.setup more robust by adding OpenapiFirst::Configuration#child so it does not matter if you load our OAD before callig OpenapiFirst::Test.setup.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/openapi_first-3.x branch from a0fbddd to b48fe70 Compare November 4, 2025 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant