dolanor / rip

REST in peace
BSD 3-Clause "New" or "Revised" License
68 stars 0 forks source link

codec.ContentTypeDecoder: drop hard coded default JSON #8

Closed dolmen closed 4 months ago

dolanor commented 5 months ago

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).

dolanor commented 4 months ago

the panic has been added in bac738c