Skip to content

Commit

Permalink
Use ErrorObjectJsonContext.Default
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierjohn authored and commonsensesoftware committed Dec 8, 2023
1 parent 2df40df commit 9376399
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ internal sealed class ErrorObjectJsonOptionsSetup : IConfigureOptions<JsonOption
// before any other resolvers currently added. If apps need to customize serialization, they can
// prepend a custom ErrorObject resolver to the chain in an IConfigureOptions<JsonOptions> registered.
public void Configure( JsonOptions options ) =>
options.SerializerOptions.TypeInfoResolverChain.Insert( 0, new ErrorObjectWriter.ErrorObjectJsonContext() );
options.SerializerOptions.TypeInfoResolverChain.Insert( 0, ErrorObjectWriter.ErrorObjectJsonContext.Default );
}

0 comments on commit 9376399

Please sign in to comment.