From e7e03f2e441af907195921d66f4a7990fe0eb574 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Thu, 27 Jul 2017 18:03:40 -0700 Subject: [PATCH] Generate XML examples for request bodies (fixes #3448) --- src/core/plugins/oas3/components/request-body.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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
{ requestBodyDescription &&