Skip to content

Commit 97181f7

Browse files
author
mkefd
committed
mappersmith v3 change void to null
1 parent 6a044a2 commit 97181f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/openApi/v3/parser/getMappedType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const TYPE_MAPPINGS = new Map<string, string>([
1717
['date-time', 'string'],
1818
['password', 'string'],
1919
['string', 'string'],
20-
['void', 'void'],
20+
['void', 'null'],
2121
['null', 'null'],
2222
]);
2323

src/openApi/v3/parser/getOperationResults.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export const getOperationResults = (operationResponses: OperationResponse[]): Op
2727
code: 200,
2828
description: '',
2929
export: 'generic',
30-
type: 'void',
31-
base: 'void',
30+
type: 'null',
31+
base: 'null',
3232
template: null,
3333
link: null,
3434
isDefinition: false,

0 commit comments

Comments
 (0)