Update types for :headers and :options settings in MediaProxy Invalidation group
authorAngelina Filippova <linakirsanova@gmail.com>
Wed, 8 Jul 2020 22:33:23 +0000 (01:33 +0300)
committerAngelina Filippova <linakirsanova@gmail.com>
Wed, 8 Jul 2020 22:33:23 +0000 (01:33 +0300)
config/description.exs

index 370af80a615223b8aa348ccacfbb8ecacde1650a..337f0d307de311cdf80159dab830aca79cdf088c 100644 (file)
@@ -1791,15 +1791,20 @@ config :pleroma, :config_description, [
       },
       %{
         key: :headers,
-        type: {:list, :tuple},
-        description: "HTTP headers of request.",
+        type: {:keyword, :string},
+        description: "HTTP headers of request",
         suggestions: [{"x-refresh", 1}]
       },
       %{
         key: :options,
         type: :keyword,
-        description: "Request options.",
-        suggestions: [params: %{ts: "xxx"}]
+        description: "Request options",
+        children: [
+          %{
+            key: :params,
+            type: {:keyword, :string}
+          }
+        ]
       }
     ]
   },