Skip to content

Commit f1f1a14

Browse files
Update test fixture
1 parent f0225ca commit f1f1a14

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

test/fixtures/types/openapi.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,38 @@ export default {
318318
'x-title': 'Get a foo',
319319
},
320320
},
321+
'/foos/create': {
322+
post: {
323+
operationId: 'foosCreatePost',
324+
responses: {
325+
200: {
326+
content: {
327+
'application/json': {
328+
schema: {
329+
properties: {
330+
ok: { type: 'boolean' },
331+
action_attempt: {
332+
$ref: '#/components/schemas/action_attempt',
333+
},
334+
},
335+
required: ['action_attempt', 'ok'],
336+
type: 'object',
337+
},
338+
},
339+
},
340+
description: 'Create a foo.',
341+
},
342+
400: { description: 'Bad Request' },
343+
401: { description: 'Unauthorized' },
344+
},
345+
security: [],
346+
summary: '/foos/create',
347+
tags: ['/foos'],
348+
'x-response-key': 'action_attempt',
349+
'x-action-attempt-type': 'CREATE_FOO',
350+
'x-title': 'Create a foo',
351+
},
352+
},
321353
'/foos/list': {
322354
get: {
323355
operationId: 'foosListGet',

0 commit comments

Comments
 (0)