jgraichen / restify

Restify is a experimental, parallel and pipelined Hypermedia API client
GNU Lesser General Public License v3.0
8 stars 2 forks source link

[2.0] Change Restify::Processors::Json.indifferent_access default value #12

Closed franzliedke closed 4 months ago

franzliedke commented 6 years ago

Let's change this default value for version 2.0.

This should be more performant and prevent problems with certain attribute names (e.g. Hashie::Mash will complain about count and key).

In addition, we could raise a deprecation warning in the indifferent_access? method when it is accessed for the first time and if it returns true. That way, library users can adopt the new default behavior by calling Restify::Processors::Json.indifferent_access = true somewhere early in their applications.