openapi: add application/x-www-form-urlencoded to body types

Closes #1683
This commit is contained in:
rinpatch 2020-04-15 00:49:21 +03:00
parent bf3afbc1a1
commit cc4ff19e34

View 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