We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b248516 commit c325e85Copy full SHA for c325e85
odml/property.py
@@ -559,7 +559,10 @@ def _values_cardinality_validation(self):
559
is respected and prints a warning message otherwise.
560
"""
561
valid = validation.Validation(self)
562
- for err in valid.errors:
+
563
+ # Make sure to display only warnings of the current property
564
+ res = [curr for curr in valid.errors if self.id == curr.obj.id]
565
+ for err in res:
566
print("%s: %s" % (err.rank.capitalize(), err.msg))
567
568
def set_values_cardinality(self, min_val=None, max_val=None):
0 commit comments