@@ -31,6 +31,14 @@ testRule('xgen-IPA-106-create-method-request-body-is-request-suffixed-object', [
3131 $ref : '#/components/schemas/SchemaRequest' ,
3232 } ,
3333 } ,
34+ 'application/vnd.atlas.2025-01-01+json' : {
35+ schema : {
36+ type : 'array' ,
37+ items : {
38+ $ref : '#/components/schemas/SchemaRequest' ,
39+ } ,
40+ } ,
41+ } ,
3442 } ,
3543 } ,
3644 } ,
@@ -89,6 +97,14 @@ testRule('xgen-IPA-106-create-method-request-body-is-request-suffixed-object', [
8997 $ref : '#/components/schemas/Schema' ,
9098 } ,
9199 } ,
100+ 'application/vnd.atlas.2024-01-01+json' : {
101+ schema : {
102+ type : 'array' ,
103+ items : {
104+ $ref : '#/components/schemas/Schema' ,
105+ } ,
106+ } ,
107+ } ,
92108 } ,
93109 } ,
94110 } ,
@@ -133,6 +149,12 @@ testRule('xgen-IPA-106-create-method-request-body-is-request-suffixed-object', [
133149 path : [ 'paths' , '/resource' , 'post' , 'requestBody' , 'content' , 'application/vnd.atlas.2023-01-01+json' ] ,
134150 severity : DiagnosticSeverity . Warning ,
135151 } ,
152+ {
153+ code : 'xgen-IPA-106-create-method-request-body-is-request-suffixed-object' ,
154+ message : 'The response body schema must reference a schema with a Request suffix. http://go/ipa/106' ,
155+ path : [ 'paths' , '/resource' , 'post' , 'requestBody' , 'content' , 'application/vnd.atlas.2024-01-01+json' ] ,
156+ severity : DiagnosticSeverity . Warning ,
157+ } ,
136158 {
137159 code : 'xgen-IPA-106-create-method-request-body-is-request-suffixed-object' ,
138160 message : 'The response body schema must reference a schema with a Request suffix. http://go/ipa/106' ,
@@ -170,6 +192,17 @@ testRule('xgen-IPA-106-create-method-request-body-is-request-suffixed-object', [
170192 'xgen-IPA-106-create-method-request-body-is-request-suffixed-object' : 'reason' ,
171193 } ,
172194 } ,
195+ 'application/vnd.atlas.2024-01-01+json' : {
196+ schema : {
197+ type : 'array' ,
198+ items : {
199+ $ref : '#/components/schemas/Schema' ,
200+ } ,
201+ } ,
202+ 'x-xgen-IPA-exception' : {
203+ 'xgen-IPA-106-create-method-request-body-is-request-suffixed-object' : 'reason' ,
204+ } ,
205+ } ,
173206 } ,
174207 } ,
175208 } ,
0 commit comments