Skip to content

Commit ef270d3

Browse files
committed
[validation] Use 3 digit IssueID enum code
1 parent 4bf7bf8 commit ef270d3

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

odml/validation.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,31 @@ class IssueID(Enum):
2525
unspecified = 1
2626

2727
# Required attributes validations
28-
object_required_attributes = 10
29-
section_type_must_be_defined = 11
28+
object_required_attributes = 110
29+
section_type_must_be_defined = 111
3030

3131
# Unique id, name and type validations
32-
section_unique_ids = 20
33-
property_unique_ids = 21
34-
section_unique_name_type = 22
35-
property_unique_name = 23
32+
section_unique_ids = 120
33+
property_unique_ids = 121
34+
section_unique_name_type = 122
35+
property_unique_name = 123
3636

3737
# Good form validations
38-
object_name_readable = 30
38+
object_name_readable = 130
3939

4040
# Property specific validations
41-
property_terminology_check = 40
42-
property_dependency_check = 41
43-
property_values_check = 42
44-
property_values_string_check = 43
41+
property_terminology_check = 140
42+
property_dependency_check = 141
43+
property_values_check = 142
44+
property_values_string_check = 143
4545

4646
# Cardinality validations
47-
section_properties_cardinality = 50
48-
section_sections_cardinality = 51
49-
property_values_cardinality = 52
47+
section_properties_cardinality = 150
48+
section_sections_cardinality = 151
49+
property_values_cardinality = 152
5050

5151
# Optional validations
52-
section_repository_present = 60
52+
section_repository_present = 160
5353

5454

5555
class ValidationError(object):

0 commit comments

Comments
 (0)