openapi: add application/x-www-form-urlencoded to body types
authorrinpatch <rinpatch@sdf.org>
Tue, 14 Apr 2020 21:49:21 +0000 (00:49 +0300)
committerrinpatch <rinpatch@sdf.org>
Tue, 14 Apr 2020 21:49:21 +0000 (00:49 +0300)
Closes #1683

lib/pleroma/web/api_spec/helpers.ex

index 35cf4c0d8313e7c9ff0712f23eef462e593dd4d2..7348dcbee6c5d32a667f7e6a9a1e565627d486d5 100644 (file)
@@ -4,7 +4,7 @@
 
 defmodule Pleroma.Web.ApiSpec.Helpers do
   def request_body(description, schema_ref, opts \\ []) do
-    media_types = ["application/json", "multipart/form-data"]
+    media_types = ["application/json", "multipart/form-data", "application/x-www-form-urlencoded"]
 
     content =
       media_types