-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
I'd like to propose removing the default Xml formatters from the MvcOptionsSetup and just requiring whoever needs it to add it manually, instead of making everyone else remove it. It just makes sense.
I have read multiple times about the content negotiation features, and that the browser is not the right tool to test web apis, the recomendation for Fiddler, etc. But still, removing the XmlFormatter is the first thing 90% of developers do when creating a new project.
Most web apis are used to talk to javascript clients like angular, jquery, etc. JSON is the standard for that and the only format most people actually need. Also, it doesn't make much sense to require a tool like Fiddler to see how a JSON is returned from a GET nowadays. Content negotiation should be a feature that is there if we need, not a something we are forced to deal with.
Other than reducing boilerplate code in most applications out there, not adding the Xml Formatter matches the idea of not loading unnecessary things in the app by default, but making us build the app with only the required pieces.
So, please consider using this moment to change this default behavior. It is almost 2015, xml is not something we want to deal with.