Skip to content

Commit d00aae5

Browse files
committed
2.6.0
- 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
1 parent 564ed31 commit d00aae5

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
## 2.6.0
6+
57
- Middlewares now accept the OAD as a first positional argument instead of `:spec` inside the options hash.
68
- No longer merge parameter schemas of the same location (for example "query") in order to fix [#320](https://github.com/ahx/openapi_first/issues/320). Use `OpenapiFirst::Schema::Hash` to validate multiple parameters schemas and return a single error object.
79
- `OpenapiFirst::Test::Methods[MyApplication]` returns a Module which adds an `app` method to be used by rack-test alonside the `assert_api_conform` method.

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
openapi_first (2.5.1)
4+
openapi_first (2.6.0)
55
hana (~> 1.3)
66
json_schemer (>= 2.1, < 3.0)
77
openapi_parameters (>= 0.3.3, < 2.0)
@@ -71,7 +71,7 @@ GEM
7171
racc (~> 1.4)
7272
nokogiri (1.18.6-x86_64-linux-gnu)
7373
racc (~> 1.4)
74-
openapi_parameters (0.4.0)
74+
openapi_parameters (0.5.0)
7575
rack (>= 2.2)
7676
parallel (1.26.3)
7777
parser (3.3.7.2)

benchmarks/Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
openapi_first (2.5.1)
4+
openapi_first (2.6.0)
55
hana (~> 1.3)
66
json_schemer (>= 2.1, < 3.0)
77
openapi_parameters (>= 0.3.3, < 2.0)
@@ -15,7 +15,7 @@ GEM
1515
benchmark-memory (0.2.0)
1616
memory_profiler (~> 1)
1717
bigdecimal (3.1.9)
18-
committee (5.5.1)
18+
committee (5.5.2)
1919
json_schema (~> 0.14, >= 0.14.3)
2020
openapi_parser (~> 2.0)
2121
rack (>= 1.5, < 3.2)
@@ -26,12 +26,12 @@ GEM
2626
hana (~> 1.3)
2727
regexp_parser (~> 2.0)
2828
simpleidn (~> 0.2)
29-
logger (1.6.6)
29+
logger (1.7.0)
3030
memory_profiler (1.1.0)
3131
mustermann (3.0.3)
3232
ruby2_keywords (~> 0.0.1)
3333
nio4r (2.7.4)
34-
openapi_parameters (0.4.0)
34+
openapi_parameters (0.5.0)
3535
rack (>= 2.2)
3636
openapi_parser (2.2.4)
3737
optparse (0.6.0)
@@ -59,7 +59,7 @@ GEM
5959
rack-session (>= 2.0.0, < 3)
6060
tilt (~> 2.0)
6161
tilt (2.6.0)
62-
vernier (1.6.0)
62+
vernier (1.7.0)
6363
webrick (1.9.1)
6464

6565
PLATFORMS

lib/openapi_first/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module OpenapiFirst
4-
VERSION = '2.5.1'
4+
VERSION = '2.6.0'
55
end

0 commit comments

Comments
 (0)