From: rinpatch Date: Tue, 14 Apr 2020 21:49:21 +0000 (+0300) Subject: openapi: add application/x-www-form-urlencoded to body types X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=cc4ff19e34fae2c4ba944e235861b6cb800b7c86;p=akkoma openapi: add application/x-www-form-urlencoded to body types Closes #1683 --- diff --git a/lib/pleroma/web/api_spec/helpers.ex b/lib/pleroma/web/api_spec/helpers.ex index 35cf4c0d8..7348dcbee 100644 --- a/lib/pleroma/web/api_spec/helpers.ex +++ b/lib/pleroma/web/api_spec/helpers.ex @@ -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