Fix broken openapi schema

pull/4105/head^2
Chocobozzz 2021-05-27 11:52:03 +02:00
parent bfe6e0d9f7
commit 85a60d8beb
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 5 additions and 5 deletions

View File

@ -108,7 +108,7 @@ info:
This API features [Cross-Origin Resource Sharing (CORS)](https://fetch.spec.whatwg.org/), This API features [Cross-Origin Resource Sharing (CORS)](https://fetch.spec.whatwg.org/),
allowing cross-domain communication from the browser for some routes: allowing cross-domain communication from the browser for some routes:
| Endpoint | | Endpoint |
|------------------------- ---| |------------------------- ---|
| `/api/*` | | `/api/*` |
@ -124,7 +124,7 @@ tags:
- name: Register - name: Register
description: | description: |
As a visitor, you can use this API to open an account (if registrations are open on As a visitor, you can use this API to open an account (if registrations are open on
that PeerTube instance). As an admin, you should use the dedicated [User creation that PeerTube instance). As an admin, you should use the dedicated [User creation
API](#operation/addUser) instead. API](#operation/addUser) instead.
- name: Session - name: Session
x-displayName: Login/Logout x-displayName: Login/Logout
@ -939,7 +939,7 @@ paths:
operationId: verifyUser operationId: verifyUser
description: | description: |
Following a user registration, the new user will receive an email asking to click a link Following a user registration, the new user will receive an email asking to click a link
containing a secret. containing a secret.
tags: tags:
- Users - Users
- Register - Register
@ -4456,7 +4456,7 @@ components:
required: true required: true
description: The thread id (root comment id) description: The thread id (root comment id)
schema: schema:
$ref: '#/components/schemas/VideoCommentThreadTree/properties/comment/properties/id' type: integer
commentId: commentId:
name: commentId name: commentId
in: path in: path
@ -6235,7 +6235,7 @@ components:
# optionally present fields: they require WITH_STATS scope # optionally present fields: they require WITH_STATS scope
videosCount: videosCount:
type: integer type: integer
description: Count of videos published description: Count of videos published
abusesCount: abusesCount:
type: integer type: integer
description: Count of reports/abuses of which the user is a target description: Count of reports/abuses of which the user is a target