1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-27 08:27:06 +02:00

lowered the max field id and name length limit to 100

This commit is contained in:
Gani Georgiev
2024-11-11 16:18:24 +02:00
parent 0af8f3cc66
commit db57572a54
3 changed files with 7 additions and 7 deletions

View File

@@ -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),