@@ -47,7 +47,7 @@ testRule('xgen-IPA-102-collection-identifier-camelCase', [
4747 message :
4848 "Collection identifiers must be in camelCase. Path segment 'Resources' in path '/Resources' is not in camelCase." ,
4949 path : [ 'paths' , '/Resources' ] ,
50- severity : DiagnosticSeverity . Warning ,
50+ severity : DiagnosticSeverity . Error ,
5151 } ,
5252 ] ,
5353 } ,
@@ -64,7 +64,7 @@ testRule('xgen-IPA-102-collection-identifier-camelCase', [
6464 message :
6565 "Collection identifiers must be in camelCase. Path segment 'resource_groups' in path '/resource_groups' is not in camelCase." ,
6666 path : [ 'paths' , '/resource_groups' ] ,
67- severity : DiagnosticSeverity . Warning ,
67+ severity : DiagnosticSeverity . Error ,
6868 } ,
6969 ] ,
7070 } ,
@@ -81,7 +81,7 @@ testRule('xgen-IPA-102-collection-identifier-camelCase', [
8181 message :
8282 "Collection identifiers must be in camelCase. Path segment 'resource-groups' in path '/resource-groups' is not in camelCase." ,
8383 path : [ 'paths' , '/resource-groups' ] ,
84- severity : DiagnosticSeverity . Warning ,
84+ severity : DiagnosticSeverity . Error ,
8585 } ,
8686 ] ,
8787 } ,
@@ -98,7 +98,7 @@ testRule('xgen-IPA-102-collection-identifier-camelCase', [
9898 message :
9999 "Collection identifiers must be in camelCase. Path segment 'Resources' in path '/Resources:createResource' is not in camelCase." ,
100100 path : [ 'paths' , '/Resources:createResource' ] ,
101- severity : DiagnosticSeverity . Warning ,
101+ severity : DiagnosticSeverity . Error ,
102102 } ,
103103 ] ,
104104 } ,
@@ -115,7 +115,7 @@ testRule('xgen-IPA-102-collection-identifier-camelCase', [
115115 message :
116116 "Collection identifiers must be in camelCase. Path segment 'resourcesAPI' in path '/resourcesAPI' is not in camelCase." ,
117117 path : [ 'paths' , '/resourcesAPI' ] ,
118- severity : DiagnosticSeverity . Warning ,
118+ severity : DiagnosticSeverity . Error ,
119119 } ,
120120 ] ,
121121 } ,
@@ -147,21 +147,21 @@ testRule('xgen-IPA-102-collection-identifier-camelCase', [
147147 message :
148148 "Collection identifiers must be in camelCase. Path '/api//users' contains double slashes (//) which is not allowed." ,
149149 path : [ 'paths' , '/api//users' ] ,
150- severity : DiagnosticSeverity . Warning ,
150+ severity : DiagnosticSeverity . Error ,
151151 } ,
152152 {
153153 code : 'xgen-IPA-102-collection-identifier-camelCase' ,
154154 message :
155155 "Collection identifiers must be in camelCase. Path '/resources///{resourceId}' contains double slashes (//) which is not allowed." ,
156156 path : [ 'paths' , '/resources///{resourceId}' ] ,
157- severity : DiagnosticSeverity . Warning ,
157+ severity : DiagnosticSeverity . Error ,
158158 } ,
159159 {
160160 code : 'xgen-IPA-102-collection-identifier-camelCase' ,
161161 message :
162162 "Collection identifiers must be in camelCase. Path '//doubleSlashAtStart' contains double slashes (//) which is not allowed." ,
163163 path : [ 'paths' , '//doubleSlashAtStart' ] ,
164- severity : DiagnosticSeverity . Warning ,
164+ severity : DiagnosticSeverity . Error ,
165165 } ,
166166 ] ,
167167 } ,
@@ -188,21 +188,21 @@ testRule('xgen-IPA-102-collection-identifier-camelCase', [
188188 message :
189189 "Collection identifiers must be in camelCase. Path segment 'API' in path '/API/Resource_groups/{userId}/User-profiles' is not in camelCase." ,
190190 path : [ 'paths' , '/API/Resource_groups/{userId}/User-profiles' ] ,
191- severity : DiagnosticSeverity . Warning ,
191+ severity : DiagnosticSeverity . Error ,
192192 } ,
193193 {
194194 code : 'xgen-IPA-102-collection-identifier-camelCase' ,
195195 message :
196196 "Collection identifiers must be in camelCase. Path segment 'Resource_groups' in path '/API/Resource_groups/{userId}/User-profiles' is not in camelCase." ,
197197 path : [ 'paths' , '/API/Resource_groups/{userId}/User-profiles' ] ,
198- severity : DiagnosticSeverity . Warning ,
198+ severity : DiagnosticSeverity . Error ,
199199 } ,
200200 {
201201 code : 'xgen-IPA-102-collection-identifier-camelCase' ,
202202 message :
203203 "Collection identifiers must be in camelCase. Path segment 'User-profiles' in path '/API/Resource_groups/{userId}/User-profiles' is not in camelCase." ,
204204 path : [ 'paths' , '/API/Resource_groups/{userId}/User-profiles' ] ,
205- severity : DiagnosticSeverity . Warning ,
205+ severity : DiagnosticSeverity . Error ,
206206 } ,
207207 ] ,
208208 } ,
@@ -219,14 +219,14 @@ testRule('xgen-IPA-102-collection-identifier-camelCase', [
219219 message :
220220 "Collection identifiers must be in camelCase. Path segment 'Valid' in path '/api/Valid/Invalid_resource/{id}:validCustomMethod' is not in camelCase." ,
221221 path : [ 'paths' , '/api/Valid/Invalid_resource/{id}:validCustomMethod' ] ,
222- severity : DiagnosticSeverity . Warning ,
222+ severity : DiagnosticSeverity . Error ,
223223 } ,
224224 {
225225 code : 'xgen-IPA-102-collection-identifier-camelCase' ,
226226 message :
227227 "Collection identifiers must be in camelCase. Path segment 'Invalid_resource' in path '/api/Valid/Invalid_resource/{id}:validCustomMethod' is not in camelCase." ,
228228 path : [ 'paths' , '/api/Valid/Invalid_resource/{id}:validCustomMethod' ] ,
229- severity : DiagnosticSeverity . Warning ,
229+ severity : DiagnosticSeverity . Error ,
230230 } ,
231231 ] ,
232232 } ,
@@ -243,14 +243,14 @@ testRule('xgen-IPA-102-collection-identifier-camelCase', [
243243 message :
244244 "Collection identifiers must be in camelCase. Path '/api//Invalid_segment//resources' contains double slashes (//) which is not allowed." ,
245245 path : [ 'paths' , '/api//Invalid_segment//resources' ] ,
246- severity : DiagnosticSeverity . Warning ,
246+ severity : DiagnosticSeverity . Error ,
247247 } ,
248248 {
249249 code : 'xgen-IPA-102-collection-identifier-camelCase' ,
250250 message :
251251 "Collection identifiers must be in camelCase. Path segment 'Invalid_segment' in path '/api//Invalid_segment//resources' is not in camelCase." ,
252252 path : [ 'paths' , '/api//Invalid_segment//resources' ] ,
253- severity : DiagnosticSeverity . Warning ,
253+ severity : DiagnosticSeverity . Error ,
254254 } ,
255255 ] ,
256256 } ,
0 commit comments