Skip to content

Commit e7e03f2

Browse files
committed
Generate XML examples for request bodies (fixes #3448)
1 parent afcc35b commit e7e03f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/plugins/oas3/components/request-body.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default ({ requestBody, getComponent, specSelectors, contentType }) => {
1414

1515
const mediaTypeValue = requestBodyContent.get(contentType)
1616

17-
const sampleSchema = getSampleSchema(mediaTypeValue.get("schema"))
17+
const sampleSchema = getSampleSchema(mediaTypeValue.get("schema").toJS(), contentType)
1818

1919
return <div>
2020
{ requestBodyDescription &&

0 commit comments

Comments
 (0)