serialization of the gRPC JSONB now fully works for the validation
This commit is contained in:
@@ -4,8 +4,8 @@ package komp_ac.table_validation;
|
||||
|
||||
// Request validation rules for a table
|
||||
message GetTableValidationRequest {
|
||||
string profile_name = 1;
|
||||
string table_name = 2;
|
||||
string profileName = 1;
|
||||
string tableName = 2;
|
||||
}
|
||||
|
||||
// Response with field-level validations; if a field is omitted,
|
||||
@@ -16,8 +16,8 @@ message TableValidationResponse {
|
||||
|
||||
// Field-level validation (extensible for future kinds)
|
||||
message FieldValidation {
|
||||
// MUST match your frontend FormState.data_key for the column
|
||||
string data_key = 1;
|
||||
// MUST match your frontend FormState.dataKey for the column
|
||||
string dataKey = 1;
|
||||
|
||||
// Current: only CharacterLimits. More rules can be added later.
|
||||
CharacterLimits limits = 10;
|
||||
@@ -44,9 +44,9 @@ message CharacterLimits {
|
||||
uint32 max = 2;
|
||||
|
||||
// Optional warning threshold; when unset, no warning threshold is applied.
|
||||
optional uint32 warn_at = 3;
|
||||
optional uint32 warnAt = 3;
|
||||
|
||||
CountMode count_mode = 4; // defaults to CHARS if unspecified
|
||||
CountMode countMode = 4; // defaults to CHARS if unspecified
|
||||
}
|
||||
|
||||
// Service to fetch validations for a table
|
||||
@@ -59,9 +59,9 @@ service TableValidationService {
|
||||
}
|
||||
|
||||
message UpdateFieldValidationRequest {
|
||||
string profile_name = 1;
|
||||
string table_name = 2;
|
||||
string data_key = 3;
|
||||
string profileName = 1;
|
||||
string tableName = 2;
|
||||
string dataKey = 3;
|
||||
FieldValidation validation = 4;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user