projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix account registration when captcha is enabled but not provided
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec.ex
diff --git
a/lib/pleroma/web/api_spec.ex
b/lib/pleroma/web/api_spec.ex
index 3890489e36b6b302127a1607320969b3854c03b7..b3c1e3ea24e7a403b4202893e0f96a3330f0b561 100644
(file)
--- a/
lib/pleroma/web/api_spec.ex
+++ b/
lib/pleroma/web/api_spec.ex
@@
-4,6
+4,7
@@
defmodule Pleroma.Web.ApiSpec do
alias OpenApiSpex.OpenApi
defmodule Pleroma.Web.ApiSpec do
alias OpenApiSpex.OpenApi
+ alias OpenApiSpex.Operation
alias Pleroma.Web.Endpoint
alias Pleroma.Web.Router
alias Pleroma.Web.Endpoint
alias Pleroma.Web.Router
@@
-24,6
+25,13
@@
defmodule Pleroma.Web.ApiSpec do
# populate the paths from a phoenix router
paths: OpenApiSpex.Paths.from_router(Router),
components: %OpenApiSpex.Components{
# populate the paths from a phoenix router
paths: OpenApiSpex.Paths.from_router(Router),
components: %OpenApiSpex.Components{
+ parameters: %{
+ "accountIdOrNickname" =>
+ Operation.parameter(:id, :path, :string, "Account ID or nickname",
+ example: "123",
+ required: true
+ )
+ },
securitySchemes: %{
"oAuth" => %OpenApiSpex.SecurityScheme{
type: "oauth2",
securitySchemes: %{
"oAuth" => %OpenApiSpex.SecurityScheme{
type: "oauth2",