Skip to content

Display example value in Swagger ReadOnly documentation #4422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 15, 2020
5 changes: 5 additions & 0 deletions src/core/components/parameter-row.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,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>}

{ bodyParam || !isExecute ? null
Expand Down