diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-05-05 14:44:29 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-05-05 15:01:33 +0400 |
commit | cc922e7d8ccbf22a0f7e0898a6ff4639123f0c7f (patch) | |
tree | 346c245d940aea01815809946afe0d1f5b17c5bd | |
parent | 1cb89aac1eef7711aa7950fe03e02e24bc665317 (diff) | |
download | pleroma-cc922e7d8ccbf22a0f7e0898a6ff4639123f0c7f.tar.gz |
Document configuration for Pleroma.Web.ApiSpec.CastAndValidate
-rw-r--r-- | config/description.exs | 14 | ||||
-rw-r--r-- | docs/configuration/cheatsheet.md | 6 |
2 files changed, 19 insertions, 1 deletions
diff --git a/config/description.exs b/config/description.exs index 9d8e3b93c..72bb4d436 100644 --- a/config/description.exs +++ b/config/description.exs @@ -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] + } + ] } ] diff --git a/docs/configuration/cheatsheet.md b/docs/configuration/cheatsheet.md index 681ab6b93..705c4c15e 100644 --- a/docs/configuration/cheatsheet.md +++ b/docs/configuration/cheatsheet.md @@ -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`. |