@@ -308,7 +308,7 @@ function getRequestBodyDef(requestBody, tableLayout, localize) {
308
308
origSchema = JSON . parse ( JSON . stringify ( origSchema ) ) ;
309
309
const schemaInObjectNotaion = schemaToObject ( origSchema ) ;
310
310
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' ] } ,
312
312
objectToTree ( schemaInObjectNotaion ) ,
313
313
] ;
314
314
}
@@ -333,12 +333,12 @@ function getResponseDef(responses, tableLayout, localize) {
333
333
const schemaInObjectNotaion = schemaToObject ( origSchema ) ;
334
334
const respBody = objectToTree ( schemaInObjectNotaion ) ;
335
335
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' ] } ,
337
337
respBody ,
338
338
] ;
339
339
} else {
340
340
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' ] } ,
342
342
] ;
343
343
}
344
344
allResponseModelTabelDefs . push ( responseBodyTableDef ) ;
0 commit comments