diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx
index 770a708d..7b019a05 100644
--- a/src/components/Sidebar.jsx
+++ b/src/components/Sidebar.jsx
@@ -95,6 +95,12 @@ const SidebarGroup = ({ i, group, location, ...props }) => (
>
)
+SidebarGroup.propTypes = {
+ i: PropTypes.number,
+ group: PropTypes.object,
+ location: PropTypes.object
+}
+
export default class Sidebar extends Component {
static propTypes = {
sidebar: PropTypes.string,
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index ba848e9f..b6c88b4d 100755
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -19,6 +19,11 @@ const SectionBox = ({ to, children, ...props }) =>
{children}
)
+SectionBox.propTypes = {
+ to: PropTypes.string.isRequired,
+ children: PropTypes.any.isRequired
+}
+
const SectionLink = ({ to, title, color, children }) => {
// eslint-disable-next-line
let classNames = classnames(styles.link, {
diff --git a/src/templates/Swagger/Paths.jsx b/src/templates/Swagger/Paths.jsx
index b4583de5..a7c078c3 100644
--- a/src/templates/Swagger/Paths.jsx
+++ b/src/templates/Swagger/Paths.jsx
@@ -87,6 +87,10 @@ const Parameters = ({ parameters }) => (
>
)
+Parameters.propTypes = {
+ parameters: PropTypes.array.isRequired
+}
+
const Responses = ({ responses }) => (
<>
Responses
@@ -98,6 +102,10 @@ const Responses = ({ responses }) => (
>
)
+Responses.propTypes = {
+ responses: PropTypes.object.isRequired
+}
+
const Method = ({ keyName, value }) => {
const { summary, description, parameters, responses } = value