chore: GPL-3.0 license propagated into *.go files in backend

This commit is contained in:
2025-06-24 01:36:25 +03:00
parent cfe60cfb8e
commit a7a200fd90
28 changed files with 470 additions and 9 deletions

View File

@@ -299,6 +299,10 @@ const docTemplate = `{
},
"models.LoginRequest": {
"type": "object",
"required": [
"password",
"username"
],
"properties": {
"password": {
"type": "string"
@@ -324,6 +328,10 @@ const docTemplate = `{
},
"models.RegistrationBeginRequest": {
"type": "object",
"required": [
"password",
"username"
],
"properties": {
"email": {
"type": "string"
@@ -333,7 +341,9 @@ const docTemplate = `{
"type": "string"
},
"username": {
"type": "string"
"type": "string",
"maxLength": 20,
"minLength": 3
}
}
}

View File

@@ -295,6 +295,10 @@
},
"models.LoginRequest": {
"type": "object",
"required": [
"password",
"username"
],
"properties": {
"password": {
"type": "string"
@@ -320,6 +324,10 @@
},
"models.RegistrationBeginRequest": {
"type": "object",
"required": [
"password",
"username"
],
"properties": {
"email": {
"type": "string"
@@ -329,7 +337,9 @@
"type": "string"
},
"username": {
"type": "string"
"type": "string",
"maxLength": 20,
"minLength": 3
}
}
}

View File

@@ -13,6 +13,9 @@ definitions:
type: string
username:
type: string
required:
- password
- username
type: object
models.LoginResponse:
properties:
@@ -29,7 +32,12 @@ definitions:
description: 'TODO: password checking'
type: string
username:
maxLength: 20
minLength: 3
type: string
required:
- password
- username
type: object
info:
contact: {}