Skip to content

Commit d205ea9

Browse files
author
yevhenii-nadtochii
committed
Document an optional errorMessage
1 parent 5196807 commit d205ea9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model/src/main/kotlin/io/spine/validation/SimpleRules.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ import io.spine.protodata.ast.FieldName
3939
* @param field The target field.
4040
* @param customFeature The feature message describing the custom operator.
4141
* @param description The human-readable text description of the feature.
42-
* @param errorMessage The error message for the case of violation.
43-
* @return a new rule.
42+
* @param errorMessage The error message for the case of violation. Can be empty for options
43+
* that delegate validation to other options instead of performing it themselves.
4444
*/
4545
public fun SimpleRule(
4646
field: FieldName,

0 commit comments

Comments
 (0)