|
|
@ -372,6 +372,10 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
|
|
|
|
tags: ["accounts"],
|
|
|
|
tags: ["accounts"],
|
|
|
|
summary: "Identity proofs",
|
|
|
|
summary: "Identity proofs",
|
|
|
|
operationId: "AccountController.identity_proofs",
|
|
|
|
operationId: "AccountController.identity_proofs",
|
|
|
|
|
|
|
|
# Validators complains about unused path params otherwise
|
|
|
|
|
|
|
|
parameters: [
|
|
|
|
|
|
|
|
%Reference{"$ref": "#/components/parameters/accountIdOrNickname"}
|
|
|
|
|
|
|
|
],
|
|
|
|
description: "Not implemented",
|
|
|
|
description: "Not implemented",
|
|
|
|
responses: %{
|
|
|
|
responses: %{
|
|
|
|
200 => empty_array_response()
|
|
|
|
200 => empty_array_response()
|
|
|
@ -469,7 +473,6 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
|
|
|
|
identifier: %Schema{type: :string},
|
|
|
|
identifier: %Schema{type: :string},
|
|
|
|
message: %Schema{type: :string}
|
|
|
|
message: %Schema{type: :string}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
required: [],
|
|
|
|
|
|
|
|
# Note: example of successful registration with failed login response:
|
|
|
|
# Note: example of successful registration with failed login response:
|
|
|
|
# example: %{
|
|
|
|
# example: %{
|
|
|
|
# "identifier" => "missing_confirmed_email",
|
|
|
|
# "identifier" => "missing_confirmed_email",
|
|
|
@ -530,7 +533,7 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
|
|
|
|
nullable: true,
|
|
|
|
nullable: true,
|
|
|
|
oneOf: [
|
|
|
|
oneOf: [
|
|
|
|
%Schema{type: :array, items: attribute_field()},
|
|
|
|
%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
|
|
|
|
# NOTE: `source` field is not supported
|
|
|
|