-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GlobalSpec not work #132
Comments
It's been a long long time since I delved in this project, but… have you tried with… GlobalSpec = #{openapi => undefined, swagger => "2.0" , info => #{title => "minirest example API"}},
application:set_env(cowboy_swagger, global_spec, GlobalSpec). …? |
Also… what does |
Ues GlobalSpec = #{openapi => undefined, swagger => "2.0" , info => #{title => "minirest example API"}},
application:set_env(cowboy_swagger, global_spec, GlobalSpec). successed, Thank you. And I think |
Aaaand merged! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is difficult to add .config file in our project, so I set global spec by
case i need swagger2.0 to support
consumes
field, likeBut it seem not work.
I try to access http://localhost:8088/api-docs/swagger.json and get return:
the
"openapi":"3.0.0"
and"swagger":"2.0"
both exist.PS:
I hope it to start as a launcher function, maybe as like:
The text was updated successfully, but these errors were encountered: