Skip to content

Conversation

ahx
Copy link
Owner

@ahx ahx commented Apr 5, 2025

  • Middlewares now accept the OAD as a first positional argument instead of :spec inside the options hash.
  • No longer merge parameter schemas of the same location (for example "query") in order to fix #320. Use OpenapiFirst::Schema::Hash to validate multiple parameters schemas and return a single error object.
  • OpenapiFirst::Test::Methods[MyApplication] returns a Module which adds an app method to be used by rack-test alonside the assert_api_conform method.
  • Make default coverage report less verbose
    The default formatter (TerminalFormatter) no longer prints all un-requested requests by default. You can set test.coverage_formatter_options = { focused: false } to get back the old behavior

- Middlewares now accept the OAD as a first positional argument instead of `:spec` inside the options hash.
- No longer merge parameter schemas of the same location (for example "query") in order to fix [#320](#320). Use `OpenapiFirst::Schema::Hash` to validate multiple parameters schemas and return a single error object.
- `OpenapiFirst::Test::Methods[MyApplication]` returns a Module which adds an `app` method to be used by rack-test alonside the `assert_api_conform` method.
- Make default coverage report less verbose
  The default formatter (TerminalFormatter) no longer prints all un-requested requests by default. You can set `test.coverage_formatter_options = { focused: false }` to get back the old behavior
@ahx ahx merged commit 5a6fb33 into main Apr 6, 2025
32 checks passed
@ahx ahx deleted the 2.6.0 branch April 6, 2025 11:59
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.

$refs used in query parameters do not load
1 participant