codec.ContentTypeDecoder: drop hard coded default JSON
dolmen opened this issue · 2 comments
dolmen commented
codec.ContentTypeDecoder: drop hard coded default JSON
dolanor commented
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).