aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-11-17 10:29:42 -0600
committerJP Dillingham <jp@dillingham.me>2024-11-17 10:29:42 -0600
commit9b0c510c29bc2ee134b82587cc6eb9c416dd288a (patch)
tree33768032b374310231eaef5195772ffb0d5daeed
parente953600484cc21151542a6dc617b430727aef703 (diff)
downloadslskd-9b0c510c29bc2ee134b82587cc6eb9c416dd288a.tar.gz
add notes
-rw-r--r--src/slskd/Program.cs8
1 files changed, 4 insertions, 4 deletions
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 =>
{