From 9b0c510c29bc2ee134b82587cc6eb9c416dd288a Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 17 Nov 2024 10:29:42 -0600 Subject: add notes --- src/slskd/Program.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/slskd/Program.cs') diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 0151367f..03443033 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -795,10 +795,10 @@ namespace slskd services.AddControllers() .ConfigureApiBehaviorOptions(options => { - options.SuppressInferBindingSourcesForParameters = true; - options.SuppressMapClientErrors = true; - options.SuppressModelStateInvalidFilter = true; - options.DisableImplicitFromServicesParameters = true; + options.SuppressInferBindingSourcesForParameters = true; // explicit [FromRoute], etc + options.SuppressMapClientErrors = true; // disables automatic ProblemDetails for 4xx + options.SuppressModelStateInvalidFilter = true; // disables automatic 400 for model errors + options.DisableImplicitFromServicesParameters = true; // explicit [FromServices] }) .AddJsonOptions(options => { -- cgit v1.2.3