diff --git a/src/core/plugins/oas3/components/request-body.jsx b/src/core/plugins/oas3/components/request-body.jsx index 666e708d..e3c73ecc 100644 --- a/src/core/plugins/oas3/components/request-body.jsx +++ b/src/core/plugins/oas3/components/request-body.jsx @@ -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