Closed gobijan closed 5 months ago
I overlooked something. Will release 1.4.1 tonight. Thanks for the report.
Thx. Didn't want to create a PR before checking with you :)
I was looking into what cruft can be removed in 2.0 and was happy with making a release that deprecates some internally used methods before taking the chance to removing them in an 2.0 release. That did not work out in fully.
This is solved in 1.4.1.
Works perfect! Thx :)
Hi, the builtin middlewares trigger deprecation warnings since the last relase.
I have a concern like this:
module OpenapiFirstEnabler extend ActiveSupport::Concern
included do if Rails.env.test? use OpenapiFirst::Middlewares::ResponseValidation, spec: Rails.root.join("public", "api", "v1", "openapi.yml") end
end end
The test suite is now spammed with deprecation warnings. Example:
[DEPRECATION]
validate
is deprecated. Please useOpenapiFirst.load('openapi.yaml').validate_request(rack_request)
instead. [DEPRECATION]validate_response!
is deprecated. Please useOpenapiFirst.load('openapi.yaml').validate_response(request, response, raise_error: false)
instead.Did I overlook something or shouldn't this be the case.