Skip to content

Node.js based forum software built for the modern web

test: spec fixes

Barış Soner Uşaklıbcd4ed49061a
diff --git a/public/openapi/read/user/userslug/edit/email.yaml b/public/openapi/read/user/userslug/edit/email.yaml
index b8fd327d5e..f1a4ca8e60 100644
--- a/public/openapi/read/user/userslug/edit/email.yaml
+++ b/public/openapi/read/user/userslug/edit/email.yaml
@@ -24,4 +24,6 @@ get:
Location:
schema:
type: string
- example: /register/complete
\ No newline at end of file
+ example: /register/complete
+ "401":
+ $ref: ../../../../components/responses/401.yaml#/401
diff --git a/public/openapi/read/user/userslug/edit/password.yaml b/public/openapi/read/user/userslug/edit/password.yaml
index 17cf092c9b..230b537d9b 100644
--- a/public/openapi/read/user/userslug/edit/password.yaml
+++ b/public/openapi/read/user/userslug/edit/password.yaml
@@ -28,4 +28,6 @@ get:
title:
type: string
- $ref: ../../../../components/schemas/Breadcrumbs.yaml#/Breadcrumbs
- - $ref: ../../../../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file
+ - $ref: ../../../../components/schemas/CommonProps.yaml#/CommonProps
+ "401":
+ $ref: ../../../../components/responses/401.yaml#/401
\ No newline at end of file
diff --git a/public/openapi/write.yaml b/public/openapi/write.yaml
index 9ea243e444..2b8e2c2be1 100644
--- a/public/openapi/write.yaml
+++ b/public/openapi/write.yaml
@@ -56,6 +56,8 @@ paths:
$ref: 'write/login.yaml'
/users/:
$ref: 'write/users.yaml'
+ /users/reauth/verify:
+ $ref: 'write/users/reauth/verify.yaml'
/users/{uid}:
$ref: 'write/users/uid.yaml'
/users/{uid}/picture:
diff --git a/public/openapi/write/users/reauth/verify.yaml b/public/openapi/write/users/reauth/verify.yaml
new file mode 100644
index 0000000000..543a938f8b
--- /dev/null
+++ b/public/openapi/write/users/reauth/verify.yaml
@@ -0,0 +1,17 @@
+post:
+ tags:
+ - users
+ summary: verify reauthentication
+ responses:
+ '200':
+ description: reauthentication verified
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ reauth:
+ type: boolean
+ example: true
+ '401':
+ $ref: ../../../components/responses/401.yaml#/401
diff --git a/public/openapi/write/users/uid/emails.yaml b/public/openapi/write/users/uid/emails.yaml
index 3c046a0dee..704a9fb0de 100644
--- a/public/openapi/write/users/uid/emails.yaml
+++ b/public/openapi/write/users/uid/emails.yaml
@@ -84,3 +84,5 @@ post:
description: An email address
'400':
description: error occured (aka email taken)
+ "401":
+ $ref: ../../../components/responses/401.yaml#/401