You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
847
847
848
-
This report was generated on **Fri Dec 20 11:30:40 CET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
848
+
This report was generated on **Tue Jan 07 13:42:22 CET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
option(default_message)="The field `${parent.type}.${field.name}` of the type `${field.type}` must have a value.";
652
+
option(default_message)="The field `${parent.type}.${field.path}` of the type `${field.type}` must have a value.";
654
653
655
654
// A user-defined validation error format message.
656
655
//
@@ -662,17 +661,17 @@ message IfMissingOption {
662
661
//
663
662
// The specified message may include the following placeholders:
664
663
//
665
-
// 1. `${field.name}` – the field name.
664
+
// 1. `${field.path}` – the field path.
666
665
// 2. `${field.type}` – the fully qualified name of the field type.
667
-
// 3. `${parent.type}` – the fully qualified name of the field declaring type.
666
+
// 3. `${parent.type}` – the fully qualified name of the validated message.
668
667
//
669
668
// The placeholders will be replaced at runtime when the error is constructed.
670
669
//
671
670
// Example: Using the `(if_missing)` option.
672
671
//
673
672
// message Student {
674
673
// Name name = 1 [(required) = true,
675
-
// (if_missing).error_msg = "The `${field.name}` field is mandatory for `${parent.type}`."];
674
+
// (if_missing).error_msg = "The `${field.path}` field is mandatory for `${parent.type}`."];
676
675
// }
677
676
//
678
677
stringerror_msg=2;
@@ -696,7 +695,7 @@ message IfMissingOption {
696
695
messageMinOption {
697
696
698
697
// The default error message.
699
-
option(default_message)="The field `${parent.type}.${field.name}` must be ${max.operator} ${min.value}.";
698
+
option(default_message)="The field `${parent.type}.${field.path}` must be ${max.operator} ${min.value}.";
700
699
701
700
// The string representation of the minimum field value.
702
701
stringvalue=1;
@@ -715,9 +714,9 @@ message MinOption {
715
714
// The specified message may include the following placeholders:
716
715
//
717
716
// 1. `${field.value}` - the field value.
718
-
// 2. `${field.name}` – the field name.
717
+
// 2. `${field.path}` – the field path.
719
718
// 3. `${field.type}` – the fully qualified name of the field type.
720
-
// 4. `${parent.type}` – the fully qualified name of the field declaring type.
719
+
// 4. `${parent.type}` – the fully qualified name of the validated message.
721
720
// 5. `${min.value}` – the specified minimum `value`.
722
721
// 6. `${min.operator}` – if `exclusive` is set to `true`, this placeholder equals to ">".
723
722
// Otherwise, ">=".
@@ -742,7 +741,7 @@ message MinOption {
742
741
messageMaxOption {
743
742
744
743
// The default error message.
745
-
option(default_message)="The field `${parent.type}.${field.name}` must be ${max.operator} ${max.value}.";
744
+
option(default_message)="The field `${parent.type}.${field.path}` must be ${max.operator} ${max.value}.";
746
745
747
746
// The string representation of the maximum field value.
748
747
stringvalue=1;
@@ -760,10 +759,10 @@ message MaxOption {
760
759
//
761
760
// The specified message may include the following placeholders:
762
761
//
763
-
// 1. `${field.name}` – the field name.
762
+
// 1. `${field.path}` – the field path.
764
763
// 2. `${field.value}` - the field value.
765
764
// 3. `${field.type}` – the fully qualified name of the field type.
766
-
// 4. `${parent.type}` – the fully qualified name of the field declaring type.
765
+
// 4. `${parent.type}` – the fully qualified name of the validated message.
767
766
// 5. `${max.value}` – the specified maximum `value`.
768
767
// 6. `${max.operator}` – if `exclusive` is set to `true`, this placeholder equals to "<".
769
768
// Otherwise, "<=".
@@ -788,7 +787,7 @@ message MaxOption {
788
787
messagePatternOption {
789
788
790
789
// The default error message.
791
-
option(default_message)="The `${parent.type}.${field.name}` field must match the regular expression `${regex.pattern}` (modifiers: `${regex.modifiers}`). The passed value: `${field.value}`.";
790
+
option(default_message)="The `${parent.type}.${field.path}` field must match the regular expression `${regex.pattern}` (modifiers: `${regex.modifiers}`). The passed value: `${field.value}`.";
792
791
793
792
// The regular expression to match.
794
793
stringregex=1;
@@ -806,10 +805,10 @@ message PatternOption {
806
805
//
807
806
// The specified message may include the following placeholders:
808
807
//
809
-
// 1. `${field.name}` – the field name.
808
+
// 1. `${field.path}` – the field path.
810
809
// 2. `${field.value}` - the field value.
811
810
// 3. `${field.type}` – the fully qualified name of the field type.
812
-
// 4. `${parent.type}` – the fully qualified name of the field declaring type.
811
+
// 4. `${parent.type}` – the fully qualified name of the validated message.
813
812
// 5. `${regex.pattern}` – the specified regex pattern.
814
813
// 6. `${regex.modifiers}` – the specified modifiers, if any. For example, `[dot_all, unicode]`.
815
814
//
@@ -869,42 +868,6 @@ message PatternOption {
869
868
}
870
869
}
871
870
872
-
// Specifies the message to show if a validated field happens to be invalid.
873
-
//
874
-
// It is applicable only to fields marked with `(validate)`.
875
-
//
876
-
messageIfInvalidOption {
877
-
878
-
// The default error message.
879
-
option(default_message)="The field `${parent.type}.${field.name}` of the type `${field.type}` is invalid. The field value: `${field.value}`.";
880
-
881
-
// A user-defined validation error format message.
882
-
//
883
-
// Use `error_msg` instead.
884
-
//
885
-
stringmsg_format=1 [deprecated = true];
886
-
887
-
// A user-defined error message.
888
-
//
889
-
// The specified message may include the following placeholders:
890
-
//
891
-
// 1. `${field.name}` – the field name.
892
-
// 2. `${field.value}` - the field value.
893
-
// 3. `${field.type}` – the fully qualified name of the field type.
894
-
// 4. `${parent.type}` – the fully qualified name of the field declaring type.
895
-
//
896
-
// The placeholders will be replaced at runtime when the error is constructed.
// (if_invalid).error_msg = "The `${field.name}` field is invalid."];
903
-
// }
904
-
//
905
-
stringerror_msg=2;
906
-
}
907
-
908
871
// Specifies that another field must be present if the option's target field is present.
909
872
//
910
873
// Unlike the `required_field` that handles combination of required fields, this option is useful
@@ -929,7 +892,7 @@ message IfInvalidOption {
929
892
messageGoesOption {
930
893
931
894
// The default error message.
932
-
option(default_message)="The field `${goes.companion}` must also be set when `${field.name}` is set in `${parent.type}`.";
895
+
option(default_message)="The field `${goes.companion}` must also be set when `${field.path}` is set in `${parent.type}`.";
933
896
934
897
// The name of the companion field whose presence is required for this field to be valid.
935
898
stringwith=1;
@@ -941,10 +904,10 @@ message GoesOption {
941
904
//
942
905
// The specified message may include the following placeholders:
943
906
//
944
-
// 1. `${field.name}` – the field name.
907
+
// 1. `${field.path}` – the field path.
945
908
// 2. `${field.value}` – the field value.
946
909
// 3. `${field.type}` – the fully qualified name of the field type.
947
-
// 4. `${parent.type}` – the fully qualified name of the field declaring type.
910
+
// 4. `${parent.type}` – the fully qualified name of the validated message.
948
911
// 5. `${goes.companion}` – the name of the companion specified in `with`.
949
912
//
950
913
// The placeholders will be replaced at runtime when the error is constructed.
@@ -1121,17 +1084,17 @@ message CompareByOption {
1121
1084
messageIfSetAgainOption {
1122
1085
1123
1086
// The default error message.
1124
-
option(default_message)="The field `${parent.type}.${field.name}` of the type `${field.type}` already has the value `${field.value}` and cannot be reassigned to `${field.proposed_value}`.";
1087
+
option(default_message)="The field `${parent.type}.${field.path}` of the type `${field.type}` already has the value `${field.value}` and cannot be reassigned to `${field.proposed_value}`.";
1125
1088
1126
1089
// A user-defined error message.
1127
1090
//
1128
1091
// The specified message may include the following placeholders:
1129
1092
//
1130
-
// 1. `${field.name}` – the field name.
1093
+
// 1. `${field.path}` – the field path.
1131
1094
// 2. `${field.type}` – the fully qualified name of the field type.
1132
1095
// 3. `${field.value}` – the current field value.
1133
1096
// 4. `${field.proposed_value}` – the value, which was attempted to be set.
1134
-
// 5. `${parent.type}` – the fully qualified name of the field declaring type.
1097
+
// 5. `${parent.type}` – the fully qualified name of the validated message.
1135
1098
//
1136
1099
// The placeholders will be replaced at runtime when the error is constructed.
option(default_message)="The field `${parent.type}.${field.name}` of the type `${field.type}` must not contain duplicates. The duplicates found: `${field.duplicates}`.";
1118
+
option(default_message)="The field `${parent.type}.${field.path}` of the type `${field.type}` must not contain duplicates. The duplicates found: `${field.duplicates}`.";
1156
1119
1157
1120
// A user-defined error message.
1158
1121
//
1159
1122
// The specified message may include the following placeholders:
1160
1123
//
1161
-
// 1. `${field.name}` – the field name.
1124
+
// 1. `${field.path}` – the field path.
1162
1125
// 2. `${field.type}` – the fully qualified name of the field type.
1163
1126
// 3. `${field.value}` – the field value (the whole collection).
1164
1127
// 4. `${field.duplicates}` – the duplicates found (elements that occur more than once).
1165
-
// 5. `${parent.type}` – the fully qualified name of the field declaring type.
1128
+
// 5. `${parent.type}` – the fully qualified name of the validated message.
1166
1129
//
1167
1130
// The placeholders will be replaced at runtime when the error is constructed.
0 commit comments