Skip to content

Commit 9e677a7

Browse files
author
yevhenii-nadtochii
committed
Leave a TODO upon determineErrorMessage()
1 parent 3e0d4a2 commit 9e677a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

model/src/main/kotlin/io/spine/validation/required/RequiredPolicy.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ private fun checkFieldType(field: Field, file: File) {
109109
}
110110
}
111111

112+
// TODO:2025-01-31:yevhenii.nadtochii: Locally changed ProtoData.
113+
// `Field.optionList` is empty when it is part of `FieldOptionDiscovered` event.
112114
private fun determineErrorMessage(field: Field, file: File): String {
113115
val ifMissingOptions = field.optionList.filter { it.name == IF_MISSING }
114116
return when (ifMissingOptions.size) {

0 commit comments

Comments
 (0)