mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-16 11:08:14 +02:00
lowered the max field id and name length limit to 100
This commit is contained in:
1 parent
0af8f3cc66
commit
db57572a54
3 files changed
+7
-7
No files matched your search
+2
-2
@@ -191,7 +191,7 @@ func DefaultFieldIdValidationRule(value any) error {
|
||||
|
||||
rules := []validation.Rule{
|
||||
validation.Required,
|
||||
validation.Length(1, 255),
|
||||
validation.Length(1, 100),
|
||||
}
|
||||
|
||||
for _, r := range rules {
|
||||
@@ -217,7 +217,7 @@ func DefaultFieldNameValidationRule(value any) error {
|
||||
|
||||
rules := []validation.Rule{
|
||||
validation.Required,
|
||||
validation.Length(1, 255),
|
||||
validation.Length(1, 100),
|
||||
validation.Match(fieldNameRegex),
|
||||
validation.NotIn(excludeNames...),
|
||||
validation.By(checkForVia),
|
||||
|
||||
Reference in new issue
Block a user