inaka / cowboy_swagger

Swagger integration for Cowboy (built on trails)
http://inaka.net/blog/2015/08/19/cowboy-swagger/
Apache License 2.0
121 stars 58 forks source link

Use normalized JSON representation internally #143

Closed richcarl closed 2 years ago

richcarl commented 2 years ago

Allows the input spec to use either atoms or binaries as map keys. E.g., if parsing an external JSON file instead of using inline Erlang maps in the handler modules, the default behaviour would be not to create atoms for keys. Similarly, all string values are normalized to binaries. This makes it easy to look up a key and check its value.

elbrujohalcon commented 2 years ago

And now I don't know why we can't run elvis on our code 🤦🏻

richcarl commented 2 years ago

It passes rebar3 test locally now, but I have no idea what's up with the checks now... :-(

elbrujohalcon commented 2 years ago

Yeah… it also passes locally here… so, I'll merge the PR and accept the mystery.