Skip to content

Commit 9376399

Browse files
xavierjohncommonsensesoftware
authored andcommitted
Use ErrorObjectJsonContext.Default
1 parent 2df40df commit 9376399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/AspNetCore/WebApi/src/Asp.Versioning.Http/ErrorObjectJsonOptionsSetup.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ internal sealed class ErrorObjectJsonOptionsSetup : IConfigureOptions<JsonOption
2020
// before any other resolvers currently added. If apps need to customize serialization, they can
2121
// prepend a custom ErrorObject resolver to the chain in an IConfigureOptions<JsonOptions> registered.
2222
public void Configure( JsonOptions options ) =>
23-
options.SerializerOptions.TypeInfoResolverChain.Insert( 0, new ErrorObjectWriter.ErrorObjectJsonContext() );
23+
options.SerializerOptions.TypeInfoResolverChain.Insert( 0, ErrorObjectWriter.ErrorObjectJsonContext.Default );
2424
}

0 commit comments

Comments
 (0)