fix: temporarily disable xml serialization
in it's current state xml endpoints are not supported, as no known good way to serialize it exists
This commit is contained in:
@@ -4,6 +4,7 @@ using Microsoft.OpenApi;
|
||||
using Shadow.Data;
|
||||
using Shadow.Tools;
|
||||
using System.Reflection;
|
||||
using System.Xml;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
@@ -17,7 +18,10 @@ builder.Services.AddDbContext<ApplicationDbContext>(options =>
|
||||
builder.Services.AddControllers(options =>
|
||||
{
|
||||
// Add XML serializer
|
||||
options.OutputFormatters.Add(new XmlSerializerOutputFormatter());
|
||||
// options.RespectBrowserAcceptHeader = true;
|
||||
// options.OutputFormatters.Add(new XmlSerializerOutputFormatter(
|
||||
// new XmlWriterSettings { OmitXmlDeclaration = true }
|
||||
// ));
|
||||
}).AddJsonOptions(options =>
|
||||
{
|
||||
// Pretty-print JSON
|
||||
|
||||
Reference in New Issue
Block a user