Aspnetcore.docs: Adding Xml support

Created on 20 Feb 2019  Â·  4Comments  Â·  Source: dotnet/AspNetCore.Docs

Currently, the alternative way of adding XML support as suggested https://docs.microsoft.com/en-us/aspnet/core/web-api/advanced/formatting?view=aspnetcore-2.2#adding-xml-format-support, will cause the ProblemDetails and ValidationProblemDetails to be serialized incorrectly because they are only wrapped correctly when you call .AddXmlSerializerFormatters(); as I found out when I reported the issue as a bug https://github.com/aspnet/AspNetCore/issues/7715


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

P1 Source - Docs.ms

Most helpful comment

nice

All 4 comments

@kingmotley thanks for reporting this. Would you be able to provide the first draft of updating this doc?

@pranavkm do you agree we should update this doc with the instructions you provided in https://github.com/aspnet/AspNetCore/issues/7715?

Yeah. Removing the alternatives would be the way to go.

nice

image

Was this page helpful?
0 / 5 - 0 ratings