Document configuration for Pleroma.Web.ApiSpec.CastAndValidate
authorEgor Kislitsyn <egor@kislitsyn.com>
Tue, 5 May 2020 10:44:29 +0000 (14:44 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Tue, 5 May 2020 11:01:33 +0000 (15:01 +0400)
config/description.exs
docs/configuration/cheatsheet.md

index 9d8e3b93cd53409909c309d41a8dc74277bcb836..72bb4d436d23bff9469a9601da340f41cc54d2a6 100644 (file)
@@ -3194,5 +3194,19 @@ config :pleroma, :config_description, [
         ]
       }
     ]
+  },
+  %{
+    group: :pleroma,
+    key: Pleroma.Web.ApiSpec.CastAndValidate,
+    type: :group,
+    children: [
+      %{
+        key: :strict,
+        type: :boolean,
+        description:
+          "Enables strict input validation (useful in development, not recommended in production)",
+        suggestions: [false]
+      }
+    ]
   }
 ]
index 681ab6b93ddf4162b3deba2ad33df2782b5c777d..705c4c15e78f03924c976d5604fe954ea292a53f 100644 (file)
@@ -924,4 +924,8 @@ Restrict access for unauthenticated users to timelines (public and federate), us
   * `remote`
 * `activities` - statuses
   * `local`
-  * `remote`
\ No newline at end of file
+  * `remote`
+
+## Pleroma.Web.ApiSpec.CastAndValidate
+
+* `:strict` a boolean, enables strict input validation (useful in development, not recommended in production). Defaults to `false`.