1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
"is_valid": false,
"errors": [
{
"message": "Name '1number' must start with a letter.",
"object": "TestObject",
"attribute": "1number",
"location": "Global",
"solution": "Resolve the issue by using 'number'.",
"error_type": "NameError",
"positions": [
{
"line": 13,
"column": {
"start": 1,
"end": 10
},
"offset": {
"start": 173,
"end": 267
}
}
]
},
{
"message": "Type 'Undefined' of property 'undefined_type' not found.",
"object": "TestObject",
"attribute": "undefined_type",
"location": "Global",
"solution": "Add the type 'Undefined' to the model or use a base type.",
"error_type": "TypeError",
"positions": [
{
"line": 17,
"column": {
"start": 1,
"end": 17
},
"offset": {
"start": 229,
"end": 267
}
}
]
},
{
"message": "Name '1Test' must start with a letter.",
"object": "1Test",
"attribute": null,
"location": "Global",
"solution": "Resolve the issue by using 'Test'.",
"error_type": "NameError",
"positions": [
{
"line": 20,
"column": {
"start": 1,
"end": 10
},
"offset": {
"start": 267,
"end": 277
}
}
]
},
{
"message": "Name '1number' must start with a letter.",
"object": "1Test",
"attribute": "1number",
"location": "Global",
"solution": "Resolve the issue by using 'number'.",
"error_type": "NameError",
"positions": [
{
"line": 22,
"column": {
"start": 1,
"end": 10
},
"offset": {
"start": 278,
"end": 306
}
}
]
},
{
"message": "Object 'Duplicate' is defined more than once.",
"object": "Duplicate",
"attribute": null,
"location": "Global",
"solution": "Rename the object(s) at lines 25, 30 to be unique.",
"error_type": "DuplicateError",
"positions": [
{
"line": 25,
"column": {
"start": 1,
"end": 14
},
"offset": {
"start": 306,
"end": 320
}
},
{
"line": 30,
"column": {
"start": 1,
"end": 14
},
"offset": {
"start": 347,
"end": 361
}
}
]
},
{
"message": "Property 'some_name' is defined more than once.",
"object": "DuplicateAttributes",
"attribute": "some_name",
"location": "Global",
"solution": "Rename the property(ies) at lines 37, 39 to be unique.",
"error_type": "DuplicateError",
"positions": [
{
"line": 37,
"column": {
"start": 1,
"end": 12
},
"offset": {
"start": 413,
"end": 472
}
},
{
"line": 39,
"column": {
"start": 1,
"end": 12
},
"offset": {
"start": 442,
"end": 472
}
}
]
},
{
"message": "Property 'some_name' has no type specified.",
"object": "NoType",
"attribute": "some_name",
"location": "Global",
"solution": "Add a type to the property 'some_name' using '- some_name: <TYPE>'.",
"error_type": "TypeError",
"positions": [
{
"line": 44,
"column": {
"start": 1,
"end": 12
},
"offset": {
"start": 484,
"end": 514
}
}
]
}
]
}