Generate XML examples for request bodies (fixes #3448)

This commit is contained in:
Kyle Shockey
2017-07-27 18:03:40 -07:00
parent afcc35b47c
commit e7e03f2e44

View File

@@ -14,7 +14,7 @@ export default ({ requestBody, getComponent, specSelectors, contentType }) => {
const mediaTypeValue = requestBodyContent.get(contentType)
const sampleSchema = getSampleSchema(mediaTypeValue.get("schema"))
const sampleSchema = getSampleSchema(mediaTypeValue.get("schema").toJS(), contentType)
return <div>
{ requestBodyDescription &&