Skip to content

Commit f72a013

Browse files
test fix
1 parent 4d22b78 commit f72a013

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tools/spectral/ipa/__tests__/createMethodRequestBodyIsRequestSuffixedObject.test.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ testRule('xgen-IPA-106-create-method-request-body-is-request-suffixed-object', [
174174
},
175175
},
176176
},
177-
'/resource/{id}': {
177+
'/resource2': {
178178
post: {
179179
requestBody: {
180180
content: {
@@ -186,25 +186,25 @@ testRule('xgen-IPA-106-create-method-request-body-is-request-suffixed-object', [
186186
'xgen-IPA-106-create-method-request-body-is-request-suffixed-object': 'reason',
187187
},
188188
},
189+
'application/vnd.atlas.2024-01-01+json': {
190+
schema: {
191+
$ref: '#/components/schemas/Schema',
192+
},
193+
'x-xgen-IPA-exception': {
194+
'xgen-IPA-106-create-method-request-body-is-request-suffixed-object': 'reason',
195+
},
196+
},
189197
},
190198
},
191199
},
192200
},
193-
'/resource2': {
201+
'/resource3': {
194202
post: {
195203
requestBody: {
196204
content: {
197205
'application/vnd.atlas.2023-01-01+json': {
198206
schema: {
199-
$ref: '#/components/schemas/Schema',
200-
},
201-
'x-xgen-IPA-exception': {
202-
'xgen-IPA-106-create-method-request-body-is-request-suffixed-object': 'reason',
203-
},
204-
},
205-
'application/vnd.atlas.2024-01-01+json': {
206-
schema: {
207-
$ref: '#/components/schemas/Schema',
207+
type: "object",
208208
},
209209
'x-xgen-IPA-exception': {
210210
'xgen-IPA-106-create-method-request-body-is-request-suffixed-object': 'reason',

0 commit comments

Comments
 (0)