Skip to content

Commit b109135

Browse files
committed
chore: remove unused parameter
1 parent 082f664 commit b109135

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/openApi/v3/parser/getContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const BASIC_MEDIA_TYPES = [
2121
'multipart/batch',
2222
];
2323

24-
export function getContent(openApi: OpenApi, content: Dictionary<OpenApiMediaType>): Content | null {
24+
export function getContent(content: Dictionary<OpenApiMediaType>): Content | null {
2525
const basicMediaTypeWithSchema = Object.keys(content)
2626
.filter(mediaType => {
2727
const cleanMediaType = mediaType.split(';')[0].trim();

src/openApi/v3/parser/getOperationRequestBody.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function getOperationRequestBody(openApi: OpenApi, body: OpenApiRequestBo
3131
};
3232

3333
if (body.content) {
34-
const content = getContent(openApi, body.content);
34+
const content = getContent(body.content);
3535
if (content) {
3636
requestBody.mediaType = content.mediaType;
3737
switch (requestBody.mediaType) {

0 commit comments

Comments
 (0)