Enable strict validation mode in dev and test environments
authorEgor Kislitsyn <egor@kislitsyn.com>
Mon, 4 May 2020 18:35:28 +0000 (22:35 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Mon, 4 May 2020 18:35:28 +0000 (22:35 +0400)
config/dev.exs
config/test.exs

index 7e1e3b4beb2a5add28c054f79f71c3ee328708ae..4faaeff5bfbf7881f72468a3a33d44b4f8a6abf9 100644 (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
index 040e67e4ab9917cc5d64dc9bf13aea11f516c728..cbf775109de48f2438e72fe4c3c1c48c91747eb6 100644 (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