Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/openApi/v3/interfaces/OpenApiRequestBody.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export interface OpenApiRequestBody extends OpenApiReference {
content: Dictionary<OpenApiMediaType>;
required?: boolean;
nullable?: boolean;
'x-body-name'?: string;
}
4 changes: 2 additions & 2 deletions src/openApi/v3/parser/getOperationRequestBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export const getOperationRequestBody = (openApi: OpenApi, body: OpenApiRequestBo
const requestBody: OperationParameter = {
in: 'body',
export: 'interface',
prop: 'requestBody',
name: 'requestBody',
prop: body['x-body-name'] ?? 'requestBody',
name: body['x-body-name'] ?? 'requestBody',
type: 'any',
base: 'any',
template: null,
Expand Down
1 change: 0 additions & 1 deletion src/utils/writeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import { writeClientServices } from './writeClientServices';
* @param exportServices Generate services
* @param exportModels Generate models
* @param exportSchemas Generate schemas
* @param exportSchemas Generate schemas
* @param indent Indentation options (4, 2 or tab)
* @param postfixServices Service name postfix
* @param postfixModels Model name postfix
Expand Down