fix(docs): remove maxLength constraint for password fields in API documentation

- Updated the API documentation in `docs.go`, `swagger.json`, and `swagger.yaml` to remove the maxLength constraint for password fields, simplifying the validation requirements.
- Added `github.com/docker/go-units` as a direct dependency in `go.mod` to support updated functionality.
This commit is contained in:
Dmitry Ng
2026-08-03 14:49:51 +03:00
parent 9b588bd211
commit 5fa405782b
4 changed files with 6 additions and 12 deletions
+1 -1
View File
@@ -22,6 +22,7 @@ require (
github.com/digitalocean/go-smbios v0.0.0-20180907143718-390a4f403a8e
github.com/docker/docker v28.3.3+incompatible
github.com/docker/go-connections v0.5.0
github.com/docker/go-units v0.5.0
github.com/fatih/color v1.17.0
github.com/gin-contrib/cors v1.7.2
github.com/gin-contrib/sessions v1.0.1
@@ -126,7 +127,6 @@ require (
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/distribution/reference v0.6.0 // indirect
github.com/dlclark/regexp2 v1.11.4 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/gabriel-vasile/mimetype v1.4.9 // indirect
+2 -4
View File
@@ -9217,8 +9217,7 @@ const docTemplate = `{
"minLength": 5
},
"password": {
"type": "string",
"maxLength": 100
"type": "string"
}
}
},
@@ -10107,8 +10106,7 @@ const docTemplate = `{
"maxLength": 70
},
"password": {
"type": "string",
"maxLength": 100
"type": "string"
},
"password_change_required": {
"type": "boolean"
+3 -5
View File
@@ -9209,8 +9209,7 @@
"minLength": 5
},
"password": {
"type": "string",
"maxLength": 100
"type": "string"
}
}
},
@@ -10099,8 +10098,7 @@
"maxLength": 70
},
"password": {
"type": "string",
"maxLength": 100
"type": "string"
},
"password_change_required": {
"type": "boolean"
@@ -10640,4 +10638,4 @@
"in": "header"
}
}
}
}
-2
View File
@@ -1067,7 +1067,6 @@ definitions:
minLength: 5
type: string
password:
maxLength: 100
type: string
required:
- current_password
@@ -1691,7 +1690,6 @@ definitions:
maxLength: 70
type: string
password:
maxLength: 100
type: string
password_change_required:
type: boolean