Skip to content

Commit

Permalink
1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ahx committed Apr 7, 2024
1 parent fff5a31 commit 0044a10
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

## Unreleased

## 1.4.0

### Changed

- Deprecate `OpenapiFirst::RuntimeRequest#validate`, `#validate!`, `#validate_response`, `#response`.
Use `OpenapiFirst.load('openapi.yaml').validate_request(rack_request, raise_error: true/false)` instead
- Deprecate `OpenapiFirst::RuntimeResponse#validate`.
Use `OpenapiFirst.load('openapi.yaml').validate_response(rack_request, rack_response, raise_error: true/false)` instead.

These deprecated methods will be removed in version 2.0.
These deprecated methods will be removed in version 2.0. The plan is to reduce the interface to validate requests and responses has been reduced to two methods: `Definition#validate_request` and `Definition#validate_response`.

## 1.3.6

Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
openapi_first (1.3.6)
openapi_first (1.4.0)
hana (~> 1.3)
json_schemer (~> 2.1.0)
multi_json (~> 1.15)
Expand Down Expand Up @@ -51,7 +51,7 @@ GEM
hana (1.3.7)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
json (2.7.1)
json (2.7.2)
json_schemer (2.1.1)
hana (~> 1.3)
regexp_parser (~> 2.0)
Expand Down Expand Up @@ -91,7 +91,7 @@ GEM
loofah (~> 2.21)
nokogiri (~> 1.14)
rainbow (3.1.1)
rake (13.1.0)
rake (13.2.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.13.0)
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
openapi_first (1.3.6)
openapi_first (1.4.0)
hana (~> 1.3)
json_schemer (~> 2.1.0)
multi_json (~> 1.15)
Expand Down Expand Up @@ -33,7 +33,7 @@ GEM
openapi_parameters (0.3.2)
rack (>= 2.2)
zeitwerk (~> 2.6)
openapi_parser (2.0.0)
openapi_parser (2.1.0)
puma (6.4.2)
nio4r (~> 2.0)
rack (3.0.10)
Expand Down
2 changes: 1 addition & 1 deletion lib/openapi_first/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module OpenapiFirst
VERSION = '1.3.6'
VERSION = '1.4.0'
end

0 comments on commit 0044a10

Please sign in to comment.