Swagger UI shows error (validation) when deployed

前端 未结 3 1723
自闭症患者
自闭症患者 2021-02-03 18:38

I have the swagger ui embedded in my application. And when I run my node application locally the UI works great.

However when I deploy the UI to my \'real\' server I ge

3条回答
  •  借酒劲吻你
    2021-02-03 19:05

    To turn off swagger validator add validatorUrl : null, in dist/index.html in

      window.swaggerUi = new SwaggerUi({
        url: url,
        validatorUrl : null,
        dom_id: "swagger-ui-container",
    

提交回复
热议问题