arsmn / fiber-swagger

fiber middleware to automatically generate RESTful API documentation with Swagger 2.0.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After updating from v2.2.0 to v2.2.4 get javascript error on load

JamesReate opened this issue · comments

After updating our project to use 2.2.4 eg:
go get: upgraded github.com/arsmn/fiber-swagger/v2 v2.2.0 => v2.24.0

the swagger WebApp started giving a javascript error. I also noticed it did not download the .json file that it normally does, which makes sense with the error as it fails on the downloadSpec() func.

image

I had the same problem.

commented

2.20.0 does not have this problem

I am also having this issue

I'm unable to reproduce this error.
Can you share more details?

its when you do custom config

The problem was new configuration and default values.
The necessary plugins and presets were not included when custom config was used.
It's fixed in new version v2.31.1.