fix(lint): additional directories to lint with fixes (#7947)

This commit is contained in:
Tim Lai
2022-03-25 11:07:51 -07:00
committed by GitHub
parent b1128d7649
commit 51bd1c290d
3 changed files with 11 additions and 7 deletions

View File

@@ -1,10 +1,13 @@
/* eslint-disable no-undef */
window.onload = function() {
window["SwaggerUIBundle"] = window["swagger-ui-bundle"]
window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"]
// Build a system
const ui = SwaggerUIBundle({
url: "https://petstore.swagger.io/v2/swagger.json",
dom_id: '#swagger-ui',
// url: "https://petstore.swagger.io/v2/swagger.json",
url: "./examples/swos-281-oas3.yaml",
// url: "./examples/swos-281-oas2.yaml",
dom_id: "#swagger-ui",
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
@@ -12,6 +15,7 @@ window.onload = function() {
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
// requestSnippetsEnabled: true,
layout: "StandaloneLayout"
})