LoginSignup
0
2

More than 5 years have passed since last update.

Swagger UI の Online Validator を消す方法

Last updated at Posted at 2017-04-02

お前を消す方法
スクリーンショット 2017-04-02 23.47.06.png

単なるバリデーションで ソースも公開されている とはいえ、 online.swagger.io に Internal な API 仕様(のURL)が送られるのは気分の良いものではないので、消します。

src/standalone/layout.jsx を編集します。

@@ -34,7 +34,6 @@
     const Schemes = getComponent("schemes")

     const Topbar = getComponent("Topbar", true)
-    const OnlineValidatorBadge = getComponent("onlineValidatorBadge", true)
     const loadingStatus = specSelectors.loadingStatus()

     return (
@@ -100,12 +99,6 @@
                 </Col>
               </Row>
           </div> }
-
-          <Row>
-            <Col>
-              <OnlineValidatorBadge />
-            </Col>
-          </Row>
       </Container>
     )
   }

webpackを入れて、初回なら npm i でいろいろと持ってきて、npmでビルド。

npm run build

v3のソースすごい見やすい。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2