@@ -107,7 +107,7 @@ testRule('xgen-IPA-123-enum-values-should-not-exceed-20', [
107107    ] , 
108108  } , 
109109  { 
110-     name : 'valid when  exception is defined ' , 
110+     name : 'exception on schema ' , 
111111    document : { 
112112      components : { 
113113        schemas : { 
@@ -251,4 +251,35 @@ testRule('xgen-IPA-123-enum-values-should-not-exceed-20', [
251251      } , 
252252    ] , 
253253  } , 
254+   { 
255+     name : 'exception on parameter schema' , 
256+     document : { 
257+       paths : { 
258+         '/resources' : { 
259+           get : { 
260+             parameters : [ 
261+               { 
262+                 name : 'status' , 
263+                 in : 'query' , 
264+                 schema : { 
265+                   type : 'string' , 
266+                   enum : [ 
267+                     'VAL_1' ,  'VAL_2' ,  'VAL_3' ,  'VAL_4' ,  'VAL_5' , 
268+                     'VAL_6' ,  'VAL_7' ,  'VAL_8' ,  'VAL_9' ,  'VAL_10' , 
269+                     'VAL_11' ,  'VAL_12' ,  'VAL_13' ,  'VAL_14' ,  'VAL_15' , 
270+                     'VAL_16' ,  'VAL_17' ,  'VAL_18' ,  'VAL_19' ,  'VAL_20' , 
271+                     'VAL_21' ,  'VAL_22' ,  'VAL_23' ,  'VAL_24' ,  'VAL_25' , 
272+                   ] , 
273+                   'x-xgen-IPA-exception' : { 
274+                     'xgen-IPA-123-enum-values-should-not-exceed-20' : 'Parameter with many possible values' , 
275+                   } , 
276+                 } , 
277+               } , 
278+             ] , 
279+           } , 
280+         } , 
281+       } , 
282+     } , 
283+     errors : [ ] , 
284+   } , 
254285] ) ; 
0 commit comments