@@ -46,12 +46,27 @@ testRule('xgen-IPA-005-exception-extension-format', [
4646 'xgen-IPA-100-rule-name' : { } ,
4747 } ,
4848 } ,
49+ '/path5' : {
50+ 'x-xgen-IPA-exception' : {
51+ 'xgen-IPA-1001-rule-name' : { } ,
52+ } ,
53+ } ,
54+ '/path6' : {
55+ 'x-xgen-IPA-exception' : {
56+ 'xgen-IPA-1001-rule_name' : { } ,
57+ } ,
58+ } ,
59+ '/path7' : {
60+ 'x-xgen-IPA-exception' : {
61+ 'xgen-IPA_100_rule-name' : { } ,
62+ } ,
63+ } ,
4964 } ,
5065 } ,
5166 errors : [
5267 {
5368 code : 'xgen-IPA-005-exception-extension-format' ,
54- message : 'IPA exceptions must have a valid key with xgen-IPA- prefix .' ,
69+ message : 'IPA exceptions must have a valid key following xgen-IPA-XXX-{rule-name} format .' ,
5570 path : [ 'paths' , '/path1' , 'x-xgen-IPA-exception' ] ,
5671 severity : DiagnosticSeverity . Error ,
5772 } ,
@@ -63,7 +78,7 @@ testRule('xgen-IPA-005-exception-extension-format', [
6378 } ,
6479 {
6580 code : 'xgen-IPA-005-exception-extension-format' ,
66- message : 'IPA exceptions must have a valid key with xgen-IPA- prefix .' ,
81+ message : 'IPA exceptions must have a valid key following xgen-IPA-XXX-{rule-name} format .' ,
6782 path : [ 'paths' , '/path3' , 'x-xgen-IPA-exception' ] ,
6883 severity : DiagnosticSeverity . Error ,
6984 } ,
@@ -73,6 +88,24 @@ testRule('xgen-IPA-005-exception-extension-format', [
7388 path : [ 'paths' , '/path4' , 'x-xgen-IPA-exception' ] ,
7489 severity : DiagnosticSeverity . Error ,
7590 } ,
91+ {
92+ code : 'xgen-IPA-005-exception-extension-format' ,
93+ message : 'IPA exceptions must have a valid key following xgen-IPA-XXX-{rule-name} format.' ,
94+ path : [ 'paths' , '/path5' , 'x-xgen-IPA-exception' ] ,
95+ severity : DiagnosticSeverity . Error ,
96+ } ,
97+ {
98+ code : 'xgen-IPA-005-exception-extension-format' ,
99+ message : 'IPA exceptions must have a valid key following xgen-IPA-XXX-{rule-name} format.' ,
100+ path : [ 'paths' , '/path6' , 'x-xgen-IPA-exception' ] ,
101+ severity : DiagnosticSeverity . Error ,
102+ } ,
103+ {
104+ code : 'xgen-IPA-005-exception-extension-format' ,
105+ message : 'IPA exceptions must have a valid key following xgen-IPA-XXX-{rule-name} format.' ,
106+ path : [ 'paths' , '/path7' , 'x-xgen-IPA-exception' ] ,
107+ severity : DiagnosticSeverity . Error ,
108+ } ,
76109 ] ,
77110 } ,
78111] ) ;
0 commit comments