We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
id()
1 parent 9af13c9 commit bd376c5Copy full SHA for bd376c5
model/src/main/kotlin/io/spine/validation/PatternPolicy.kt
@@ -68,10 +68,7 @@ internal class PatternPolicy : Policy<FieldOptionDiscovered>() {
68
val option = event.option.unpack<PatternOption>()
69
val message = option.errorMsg.ifEmpty { option.descriptorForType.defaultMessage }
70
return patternFieldDiscovered {
71
- id = fieldId {
72
- type = field.declaringType
73
- name = field.name
74
- }
+ id = field.id()
75
errorMessage = message
76
pattern = option.regex
77
modifier = option.modifier
0 commit comments