Enable strict validation mode in dev and test environments

This commit is contained in:
Egor Kislitsyn 2020-05-04 22:35:28 +04:00
parent e55fd530bc
commit 1cb89aac1e
No known key found for this signature in database
GPG Key ID: 1B49CB15B71E7805
2 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,8 @@ config :pleroma, Pleroma.Repo,
hostname: "localhost",
pool_size: 10
config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
if File.exists?("./config/dev.secret.exs") do
import_config "dev.secret.exs"
else

View File

@ -96,6 +96,8 @@ config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: true
config :pleroma, Pleroma.Plugs.RemoteIp, enabled: false
config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
if File.exists?("./config/test.secret.exs") do
import_config "test.secret.exs"
else