Skip to content
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

Swagger UI error suggests an issue with openapi 3.0.0 #151

Open
camilocerchiari opened this issue Jul 13, 2023 · 0 comments
Open

Swagger UI error suggests an issue with openapi 3.0.0 #151

camilocerchiari opened this issue Jul 13, 2023 · 0 comments

Comments

@camilocerchiari
Copy link

camilocerchiari commented Jul 13, 2023

hi!
I'm getting this error in the Swagger UI:

image

the fact that it could not resolve pointer: /definitions/, instead of going for /components/schemas/ suggests that it is set for swagger:"2.0".

I have set this spec, which seems to have been taken, as the title is there:

    NewSpec = #{
        openapi => "3.0.0",
        info => #{title => "Sellers Guard"}
    },
    cowboy_swagger:set_global_spec(NewSpec),

I'm new here, I'm most probably missing something, any ideas to fix the error would be appreciated.

Edit: cowboy_swagger─2.5.1 (hex package)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant