Skip to content

Commit 271d78d

Browse files
committed
[validation] Change IssueID codes
1 parent ff37562 commit 271d78d

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 = 110
29-
section_type_must_be_defined = 111
28+
object_required_attributes = 101
29+
section_type_must_be_defined = 102
3030

3131
# Unique id, name and type validations
32-
section_unique_ids = 120
33-
property_unique_ids = 121
34-
section_unique_name_type = 122
35-
property_unique_name = 123
32+
section_unique_ids = 200
33+
property_unique_ids = 201
34+
section_unique_name_type = 202
35+
property_unique_name = 203
3636

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

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

4646
# Cardinality validations
47-
section_properties_cardinality = 150
48-
section_sections_cardinality = 151
49-
property_values_cardinality = 152
47+
section_properties_cardinality = 500
48+
section_sections_cardinality = 501
49+
property_values_cardinality = 502
5050

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

5454

5555
class ValidationError(object):

0 commit comments

Comments
 (0)