@@ -26,10 +26,10 @@ testRule('xgen-IPA-121-date-time-fields-mention-iso-8601', [
2626 TestParameter : {
2727 name : 'createdAt' ,
2828 in : 'query' ,
29+ description : 'The creation timestamp in ISO 8601 format in UTC.' ,
2930 schema : {
3031 type : 'string' ,
3132 format : 'date-time' ,
32- description : 'The creation timestamp in ISO 8601 format in UTC.' ,
3333 } ,
3434 } ,
3535 } ,
@@ -82,10 +82,10 @@ testRule('xgen-IPA-121-date-time-fields-mention-iso-8601', [
8282 TestParameter : {
8383 name : 'createdAt' ,
8484 in : 'query' ,
85+ description : 'The creation timestamp' ,
8586 schema : {
8687 type : 'string' ,
8788 format : 'date-time' ,
88- description : 'The creation timestamp' ,
8989 } ,
9090 } ,
9191 } ,
@@ -127,7 +127,7 @@ testRule('xgen-IPA-121-date-time-fields-mention-iso-8601', [
127127 code : 'xgen-IPA-121-date-time-fields-mention-iso-8601' ,
128128 message :
129129 'API producers must use ISO 8601 date-time format in UTC for all timestamps. Fields must note ISO 8601 in their description.' ,
130- path : [ 'components' , 'parameters' , 'TestParameter' , 'schema' ] ,
130+ path : [ 'components' , 'parameters' , 'TestParameter' ] ,
131131 severity : DiagnosticSeverity . Warning ,
132132 } ,
133133 ] ,
@@ -154,13 +154,13 @@ testRule('xgen-IPA-121-date-time-fields-mention-iso-8601', [
154154 TestParameter : {
155155 name : 'createdAt' ,
156156 in : 'query' ,
157+ description : 'The creation timestamp' ,
157158 schema : {
158159 type : 'string' ,
159160 format : 'date-time' ,
160- description : 'The creation timestamp' ,
161- 'x-xgen-IPA-exception' : {
162- 'xgen-IPA-121-date-time-fields-mention-iso-8601' : 'Legacy field format' ,
163- } ,
161+ } ,
162+ 'x-xgen-IPA-exception' : {
163+ 'xgen-IPA-121-date-time-fields-mention-iso-8601' : 'Legacy field format' ,
164164 } ,
165165 } ,
166166 } ,
@@ -178,19 +178,19 @@ testRule('xgen-IPA-121-date-time-fields-mention-iso-8601', [
178178 {
179179 name : 'since' ,
180180 in : 'query' ,
181+ description : 'Filter resources created since this ISO 8601 timestamp in UTC' ,
181182 schema : {
182183 type : 'string' ,
183184 format : 'date-time' ,
184- description : 'Filter resources created since this ISO 8601 timestamp in UTC' ,
185185 } ,
186186 } ,
187187 {
188188 name : 'until' ,
189189 in : 'query' ,
190+ description : 'Filter resources created until this timestamp' , // Missing ISO 8601 and UTC
190191 schema : {
191192 type : 'string' ,
192193 format : 'date-time' ,
193- description : 'Filter resources created until this timestamp' , // Missing ISO 8601 and UTC
194194 } ,
195195 } ,
196196 ] ,
@@ -203,7 +203,7 @@ testRule('xgen-IPA-121-date-time-fields-mention-iso-8601', [
203203 code : 'xgen-IPA-121-date-time-fields-mention-iso-8601' ,
204204 message :
205205 'API producers must use ISO 8601 date-time format in UTC for all timestamps. Fields must note ISO 8601 in their description.' ,
206- path : [ 'paths' , '/resources' , 'get' , 'parameters' , '1' , 'schema' ] ,
206+ path : [ 'paths' , '/resources' , 'get' , 'parameters' , '1' ] ,
207207 severity : DiagnosticSeverity . Warning ,
208208 } ,
209209 ] ,
0 commit comments