ahx / openapi_first

openapi_first is a Ruby gem for request / response validation and contract-testing against an OpenAPI API description. It makes APIFirst easy and reliable.
MIT License
97 stars 12 forks source link

Resolve warning about duplicate constant assignment #227

Closed gobijan closed 5 months ago

gobijan commented 5 months ago

Getting rid of the annoying warning introduced in 1.3.0 caused by duplicate constant assignment:

/Users/bijan/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/openapi_first-1.3.0/lib/openapi_first/definition/operation.rb:160: warning: already initialized constant OpenapiFirst::Definitio n::Operation::WRITE_METHODS /Users/bijan/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/openapi_first-1.3.0/lib/openapi_first/definition/operation.rb:20: warning: previous definition of WRITE_METHODS was here

ahx commented 5 months ago

I‘ll make a new release later today

gobijan commented 5 months ago

Thank you for building this beautiful gem. I really like this straight forward approach that is feasible for the design first methodology :)

ahx commented 5 months ago

Fixed in 1.3.1. 🧹