Skip to content

Commit 59ae5f6

Browse files
committed
added missing text for request-body and response-model
1 parent b00d626 commit 59ae5f6

File tree

2 files changed

+3
-132
lines changed

2 files changed

+3
-132
lines changed

dist/eslint_report.html

Lines changed: 0 additions & 129 deletions
This file was deleted.

src/utils/pdf-gen-utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ function getRequestBodyDef(requestBody, tableLayout, localize) {
308308
origSchema = JSON.parse(JSON.stringify(origSchema));
309309
const schemaInObjectNotaion = schemaToObject(origSchema);
310310
requestBodyTableDef = [
311-
{ text: contentType, margin: [0, 5, 0, 0], style: ['small', 'b', 'blue'] },
311+
{ text: `${localize.requestBody} - ${contentType}`, margin: [0, 10, 0, 0], style: ['small', 'b'] },
312312
objectToTree(schemaInObjectNotaion),
313313
];
314314
}
@@ -333,12 +333,12 @@ function getResponseDef(responses, tableLayout, localize) {
333333
const schemaInObjectNotaion = schemaToObject(origSchema);
334334
const respBody = objectToTree(schemaInObjectNotaion);
335335
responseBodyTableDef = [
336-
{ text: contentType, margin: [0, 5, 0, 0], style: ['small', 'b', 'blue'] },
336+
{ text: `${localize.responseModel} - ${contentType}`, margin: [0, 10, 0, 0], style: ['small', 'b'] },
337337
respBody,
338338
];
339339
} else {
340340
responseBodyTableDef = [
341-
{ text: contentType, margin: [0, 5, 0, 0], style: ['small', 'b', 'blue'] },
341+
{ text: `${localize.responseModel} - ${contentType}`, margin: [0, 5, 0, 0], style: ['small', 'b'] },
342342
];
343343
}
344344
allResponseModelTabelDefs.push(responseBodyTableDef);

0 commit comments

Comments
 (0)