Skip to content

Commit 513925a

Browse files
chore: test
1 parent dcf112d commit 513925a

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

src/oas3/__tests__/__snapshots__/operation.test.ts.snap

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,22 @@ Object {
156156
"path": "/users/{userId}",
157157
"request": Object {
158158
"body": Object {
159-
"contents": Array [],
159+
"contents": Array [
160+
Object {
161+
"encodings": Array [],
162+
"examples": Array [],
163+
"mediaType": "application/json",
164+
"schema": Object {
165+
"$schema": "http://json-schema.org/draft-04/schema#",
166+
"properties": Object {
167+
"id": "string",
168+
},
169+
"type": "object",
170+
},
171+
},
172+
],
173+
"description": undefined,
174+
"required": undefined,
160175
},
161176
"cookie": Array [],
162177
"headers": Array [],

src/oas3/__tests__/operation.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ describe('transformOas3Operation', () => {
5454
description: 'descr',
5555
summary: 'summary',
5656
tags: ['tag1'],
57+
requestBody: {
58+
content: {
59+
'application/json': {
60+
schema: {
61+
type: 'object',
62+
properties: {
63+
id: 'string',
64+
},
65+
},
66+
},
67+
},
68+
},
5769
},
5870
},
5971
},

0 commit comments

Comments
 (0)