diff options
author | rinpatch <rinpatch@sdf.org> | 2020-09-20 11:15:20 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-20 11:15:20 +0000 |
commit | 402acce5251216e74e3b646c3b5fc8a04b714f99 (patch) | |
tree | 3fc3baff7046d77b7c5b1deef7ca6766ffd97813 /lib/pleroma/web/api_spec/operations/account_operation.ex | |
parent | 6c052bd5b6cc29d321b500654bd6b098d0e6c56a (diff) | |
parent | 4b12e071ac7ea87c91f6192cc0da90c32e846ca4 (diff) | |
download | pleroma-402acce5251216e74e3b646c3b5fc8a04b714f99.tar.gz |
Merge branch 'fix/openapi-errors' into 'develop'
OpenAPI: fix various errors pointed out by editor.swagger.io
See merge request pleroma/pleroma!3011
Diffstat (limited to 'lib/pleroma/web/api_spec/operations/account_operation.ex')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/account_operation.ex | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/operations/account_operation.ex b/lib/pleroma/web/api_spec/operations/account_operation.ex index aaebc9b5c..d90ddb787 100644 --- a/lib/pleroma/web/api_spec/operations/account_operation.ex +++ b/lib/pleroma/web/api_spec/operations/account_operation.ex @@ -372,6 +372,10 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do tags: ["accounts"], summary: "Identity proofs", operationId: "AccountController.identity_proofs", + # Validators complains about unused path params otherwise + parameters: [ + %Reference{"$ref": "#/components/parameters/accountIdOrNickname"} + ], description: "Not implemented", responses: %{ 200 => empty_array_response() @@ -469,7 +473,6 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do identifier: %Schema{type: :string}, message: %Schema{type: :string} }, - required: [], # Note: example of successful registration with failed login response: # example: %{ # "identifier" => "missing_confirmed_email", @@ -530,7 +533,7 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do nullable: true, oneOf: [ %Schema{type: :array, items: attribute_field()}, - %Schema{type: :object, additionalProperties: %Schema{type: attribute_field()}} + %Schema{type: :object, additionalProperties: attribute_field()} ] }, # NOTE: `source` field is not supported |