Add validation constraints for repository creation fields (#36671) (#36757)

Backport #36671 by @lunny

Adds validation constraints to repository creation inputs, enforcing
max-length limits for labels/license/readme and enum validation for
trust model and object format. Updates both the API option struct and
the web form struct to keep validation consistent.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
Giteabot
2026-02-25 20:43:00 +00:00
committed by GitHub
co-authored by Lunny Xiao
parent d1bd84f8cf
commit b3bc79262d
4 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -23537,7 +23537,7 @@
"x-go-name": "Name"
},
"object_format_name": {
"description": "ObjectFormatName of the underlying git repository",
"description": "ObjectFormatName of the underlying git repository, empty string for default (sha1)",
"type": "string",
"enum": [
"sha1",