We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2df40df commit 9376399Copy full SHA for 9376399
src/AspNetCore/WebApi/src/Asp.Versioning.Http/ErrorObjectJsonOptionsSetup.cs
@@ -20,5 +20,5 @@ internal sealed class ErrorObjectJsonOptionsSetup : IConfigureOptions<JsonOption
20
// before any other resolvers currently added. If apps need to customize serialization, they can
21
// prepend a custom ErrorObject resolver to the chain in an IConfigureOptions<JsonOptions> registered.
22
public void Configure( JsonOptions options ) =>
23
- options.SerializerOptions.TypeInfoResolverChain.Insert( 0, new ErrorObjectWriter.ErrorObjectJsonContext() );
+ options.SerializerOptions.TypeInfoResolverChain.Insert( 0, ErrorObjectWriter.ErrorObjectJsonContext.Default );
24
}
0 commit comments