mvrilo / go-redoc

go-redoc is an embedded OpenAPI/Swagger documentation ui for Go using ReDoc
MIT License
66 stars 28 forks source link

Features: allow use $ref import sub spec files #10

Open wowissu opened 10 months ago

wowissu commented 10 months ago

Hi @mvrilo , I really like this repo, it helps me a lot.

I was in trouble on using $ref to import outside spec. And I figure out those yaml files haven't been loaded on browser side. So I edited this change allows browser to access extended spec files. And also add new setting SpecDir for specifying accessible directory.

Screenshot 2023-08-23 at 2 18 31 PM Screenshot 2023-08-23 at 2 17 30 PM