diff --git a/src/core/components/response.jsx b/src/core/components/response.jsx
index e25cbce5..dd14a228 100644
--- a/src/core/components/response.jsx
+++ b/src/core/components/response.jsx
@@ -79,14 +79,15 @@ export default class Response extends React.Component {
const ContentType = getComponent("contentType")
var sampleResponse
+ var schema
if(isOAS3()) {
let oas3SchemaForContentType = response.getIn(["content", this.state.responseContentType, "schema"])
sampleResponse = oas3SchemaForContentType ? getSampleSchema(oas3SchemaForContentType.toJS(), this.state.responseContentType, { includeReadOnly: true }) : null
- var schema = oas3SchemaForContentType ? inferSchema(oas3SchemaForContentType.toJS()) : null
+ schema = oas3SchemaForContentType ? inferSchema(oas3SchemaForContentType.toJS()) : null
} else {
sampleResponse = schema ? getSampleSchema(schema, contentType, { includeReadOnly: true }) : null
- var schema = inferSchema(response.toJS())
+ schema = inferSchema(response.toJS())
}
let example = getExampleComponent( sampleResponse, examples, HighlightCode )
diff --git a/src/core/components/version-stamp.jsx b/src/core/components/version-stamp.jsx
index 19e58ae3..262cc023 100644
--- a/src/core/components/version-stamp.jsx
+++ b/src/core/components/version-stamp.jsx
@@ -1,5 +1,12 @@
import React from "react"
+import PropTypes from "prop-types"
-export default ({ version }) => {
+const VersionStamp = ({ version }) => {
return { version }
}
+
+VersionStamp.propTypes = {
+ version: PropTypes.string.isRequired
+}
+
+export default VersionStamp
diff --git a/src/core/plugins/oas3/components/callbacks.jsx b/src/core/plugins/oas3/components/callbacks.jsx
index f2e3c325..5414f59f 100644
--- a/src/core/plugins/oas3/components/callbacks.jsx
+++ b/src/core/plugins/oas3/components/callbacks.jsx
@@ -1,8 +1,9 @@
import React from "react"
+import PropTypes from "prop-types"
-export default (props) => {
+const Callbacks = (props) => {
let { callbacks, getComponent } = props
- const Markdown = getComponent("Markdown")
+ // const Markdown = getComponent("Markdown")
const Operation = getComponent("operation", true)
if(!callbacks) {
@@ -10,10 +11,10 @@ export default (props) => {
}
let callbackElements = callbacks.map((callback, callbackName) => {
- return