chore: updated docs

This commit is contained in:
2025-07-06 14:03:55 +03:00
parent bc9f5c6d3c
commit 8588a17928
3 changed files with 17 additions and 38 deletions

View File

@@ -141,7 +141,10 @@ const docTemplate = `{
], ],
"responses": { "responses": {
"200": { "200": {
"description": "desc" "description": "Account is created and awaiting verification"
},
"409": {
"description": "Username or email is already taken"
} }
} }
} }
@@ -362,13 +365,10 @@ const docTemplate = `{
"type": "string" "type": "string"
}, },
"password": { "password": {
"description": "TODO: password checking",
"type": "string" "type": "string"
}, },
"username": { "username": {
"type": "string", "type": "string"
"maxLength": 20,
"minLength": 3
} }
} }
}, },
@@ -380,21 +380,14 @@ const docTemplate = `{
"verification_code" "verification_code"
], ],
"properties": { "properties": {
"avatar_url": {
"type": "string",
"maxLength": 255
},
"birthday": { "birthday": {
"type": "string" "type": "string"
}, },
"name": { "name": {
"type": "string", "type": "string"
"maxLength": 75
}, },
"username": { "username": {
"type": "string", "type": "string"
"maxLength": 20,
"minLength": 3
}, },
"verification_code": { "verification_code": {
"type": "string" "type": "string"

View File

@@ -137,7 +137,10 @@
], ],
"responses": { "responses": {
"200": { "200": {
"description": "desc" "description": "Account is created and awaiting verification"
},
"409": {
"description": "Username or email is already taken"
} }
} }
} }
@@ -358,13 +361,10 @@
"type": "string" "type": "string"
}, },
"password": { "password": {
"description": "TODO: password checking",
"type": "string" "type": "string"
}, },
"username": { "username": {
"type": "string", "type": "string"
"maxLength": 20,
"minLength": 3
} }
} }
}, },
@@ -376,21 +376,14 @@
"verification_code" "verification_code"
], ],
"properties": { "properties": {
"avatar_url": {
"type": "string",
"maxLength": 255
},
"birthday": { "birthday": {
"type": "string" "type": "string"
}, },
"name": { "name": {
"type": "string", "type": "string"
"maxLength": 75
}, },
"username": { "username": {
"type": "string", "type": "string"
"maxLength": 20,
"minLength": 3
}, },
"verification_code": { "verification_code": {
"type": "string" "type": "string"

View File

@@ -32,11 +32,8 @@ definitions:
email: email:
type: string type: string
password: password:
description: 'TODO: password checking'
type: string type: string
username: username:
maxLength: 20
minLength: 3
type: string type: string
required: required:
- password - password
@@ -44,17 +41,11 @@ definitions:
type: object type: object
models.RegistrationCompleteRequest: models.RegistrationCompleteRequest:
properties: properties:
avatar_url:
maxLength: 255
type: string
birthday: birthday:
type: string type: string
name: name:
maxLength: 75
type: string type: string
username: username:
maxLength: 20
minLength: 3
type: string type: string
verification_code: verification_code:
type: string type: string
@@ -157,7 +148,9 @@ paths:
- application/json - application/json
responses: responses:
"200": "200":
description: desc description: Account is created and awaiting verification
"409":
description: Username or email is already taken
summary: Register an account summary: Register an account
tags: tags:
- Auth - Auth