@@ -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