feat: Display example value in Swagger ReadOnly documentation (#4422)

This commit is contained in:
David DE CARVALHO
2020-06-16 00:23:28 +02:00
committed by GitHub
parent 973e1f7a9b
commit ca1b19a31b
2 changed files with 69 additions and 0 deletions

View File

@@ -294,6 +294,11 @@ export default class ParameterRow extends Component {
: null
}
{ (bodyParam || !isExecute) && paramExample !== undefined ?
<Markdown source={"<i>Example</i> : " + paramExample}/>
: null
}
{(isFormData && !isFormDataSupported) && <div>Error: your browser does not support FormData</div>}
{