From 1970b2c41033a5c9aea4ad151987911b417ac68f Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Mon, 3 Jul 2017 19:02:03 -0700 Subject: [PATCH] Disable Online Validation badge for OAS3 --- src/core/plugins/oas3/wrap-components/index.js | 4 +++- .../plugins/oas3/wrap-components/online-validator-badge.js | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/core/plugins/oas3/wrap-components/online-validator-badge.js diff --git a/src/core/plugins/oas3/wrap-components/index.js b/src/core/plugins/oas3/wrap-components/index.js index b752ea47..409b2dc9 100644 --- a/src/core/plugins/oas3/wrap-components/index.js +++ b/src/core/plugins/oas3/wrap-components/index.js @@ -1,11 +1,13 @@ import Markdown from "./markdown" import parameters from "./parameters" import VersionStamp from "./version-stamp" +import OnlineValidatorBadge from "./online-validator-badge" import Model from "./model" export default { Markdown, parameters, VersionStamp, - model: Model + model: Model, + onlineValidatorBadge: OnlineValidatorBadge } diff --git a/src/core/plugins/oas3/wrap-components/online-validator-badge.js b/src/core/plugins/oas3/wrap-components/online-validator-badge.js new file mode 100644 index 00000000..63750943 --- /dev/null +++ b/src/core/plugins/oas3/wrap-components/online-validator-badge.js @@ -0,0 +1,6 @@ +import React from "react" +import { OAS3ComponentWrapFactory } from "../helpers" + +// We're disabling the Online Validator Badge until the online validator +// can handle OAS3 specs. +export default OAS3ComponentWrapFactory(() => null)