Swagger UI の Online Validator を消す方法
単なるバリデーションで ソースも公開されている とはいえ、 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のソースすごい見やすい。
Author And Source
この問題について(Swagger UI の Online Validator を消す方法), 我々は、より多くの情報をここで見つけました https://qiita.com/utisam/items/61e7551504bcf80854a5著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .