validation2 I dont know if its correct???

This commit is contained in:
Priec
2025-10-26 16:44:15 +01:00
parent 11185282c4
commit 8ec1fa1761
5 changed files with 45 additions and 13 deletions

View File

@@ -23,9 +23,10 @@ message FieldValidation {
CharacterLimits limits = 10;
// Future expansion:
// PatternRules pattern = 11;
// DisplayMask mask = 12;
DisplayMask mask = 3;
// ExternalValidation external = 13;
// CustomFormatter formatter = 14;
bool required = 4;
}
// Character length counting mode
@@ -49,6 +50,13 @@ message CharacterLimits {
CountMode countMode = 4; // defaults to CHARS if unspecified
}
// Mask for pretty display
message DisplayMask {
string pattern = 1; // e.g., "(###) ###-####" or "####-##-##"
string input_char = 2; // e.g., "#"
optional string template_char = 3; // e.g., "_"
}
// Service to fetch validations for a table
service TableValidationService {
rpc GetTableValidation(GetTableValidationRequest)