Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Running response schema descriptions through the markdown parser. (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion authored Aug 5, 2019
1 parent bf9c2ae commit be2442d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/api-explorer/src/ResponseSchema.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const React = require('react');
const PropTypes = require('prop-types');
const classNames = require('classnames');
const markdown = require('@readme/markdown');

const Oas = require('./lib/Oas');
const findSchemaDefinition = require('./lib/find-schema-definition');
Expand Down Expand Up @@ -95,7 +96,9 @@ class ResponseSchema extends React.Component {
{this.renderHeader()}
<div className="response-schema">
{operation.responses[this.state.selectedStatus].description && (
<p className="desc">{operation.responses[this.state.selectedStatus].description}</p>
<p className="desc">
{markdown(operation.responses[this.state.selectedStatus].description)}
</p>
)}
{schema && <ResponseSchemaBody schema={schema} oas={oas} />}
</div>
Expand Down

0 comments on commit be2442d

Please sign in to comment.