diff options
author | rinpatch <rinpatch@sdf.org> | 2020-05-15 11:13:08 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-05-15 11:13:08 +0000 |
commit | 081d1d3f48f2264ee329f7ff7af7c2f88fe0a654 (patch) | |
tree | cc123eb7495ddbd998ce3943fa5f4edb17b66a5b /lib/pleroma/web/api_spec/operations/app_operation.ex | |
parent | 907acbf62be2d0006baa6029ea453d363646a3bc (diff) | |
parent | e090191d03b21020a75c1ef91a200c3e4807c2d1 (diff) | |
download | pleroma-081d1d3f48f2264ee329f7ff7af7c2f88fe0a654.tar.gz |
Merge branch 'openapi/nullable-request-fields' into 'develop'
[OpenAPI] Mark all not required request fields as nullable
Closes #1761
See merge request pleroma/pleroma!2536
Diffstat (limited to 'lib/pleroma/web/api_spec/operations/app_operation.ex')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/app_operation.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pleroma/web/api_spec/operations/app_operation.ex b/lib/pleroma/web/api_spec/operations/app_operation.ex index f6ccd073f..ae01cbbec 100644 --- a/lib/pleroma/web/api_spec/operations/app_operation.ex +++ b/lib/pleroma/web/api_spec/operations/app_operation.ex @@ -105,7 +105,11 @@ defmodule Pleroma.Web.ApiSpec.AppOperation do description: "Space separated list of scopes", default: "read" }, - website: %Schema{type: :string, description: "A URL to the homepage of your app"} + website: %Schema{ + type: :string, + nullable: true, + description: "A URL to the homepage of your app" + } }, required: [:client_name, :redirect_uris], example: %{ |