diff --git a/src/components/Parameters/Parameters.tsx b/src/components/Parameters/Parameters.tsx index 9f8d4842f8..9145f13ed2 100644 --- a/src/components/Parameters/Parameters.tsx +++ b/src/components/Parameters/Parameters.tsx @@ -4,11 +4,12 @@ import { ParametersGroup } from './ParametersGroup'; import { UnderlinedHeader } from '../../common-elements'; +import { MediaContentModel } from '../../services'; import { FieldModel, RequestBodyModel } from '../../services/models'; import { MediaTypesSwitch } from '../MediaTypeSwitch/MediaTypesSwitch'; import { Schema } from '../Schema'; -import { MediaContentModel } from '../../services'; +import { Markdown } from '../Markdown/Markdown'; function safePush(obj, prop, item) { if (!obj[prop]) { @@ -45,13 +46,15 @@ export class Parameters extends React.PureComponent { const bodyContent = body && body.content; + const bodyDescription = body && body.description; + return ( -
+ <> {paramsPlaces.map(place => ( ))} - {bodyContent && } -
+ {bodyContent && } + ); } } @@ -64,12 +67,17 @@ function DropdownWithinHeader(props) { ); } -function BodyContent(props: { content: MediaContentModel }): JSX.Element { - const { content } = props; +function BodyContent(props: { content: MediaContentModel; description?: string }): JSX.Element { + const { content, description } = props; return ( {({ schema }) => { - return ; + return ( + <> + {description !== undefined && } + + + ); }} );