dolanor/rip

codec.ContentTypeDecoder: drop hard coded default JSON

dolmen opened this issue · 2 comments

codec.ContentTypeDecoder: drop hard coded default JSON

Yes. Before, everything was under a global codec registry, and json was default.
But now, we have RouteOptions, and I want it to be explicit. If you want, you could use a RouteOptionsDefault that would have JSON as the only and default codec. But otherwise, it should just fail (maybe even panic if no codec is defined).

the panic has been added in bac738c