Closed rkirchofer closed 2 years ago
Hello,
The issue with your swagger JSON is that there are no operationId
s. In the README (although the README is now very long) is a caveats section:
You need :operationId in the OpenAPI/Swagger spec to name routes when using bootstrap-openapi
You can also call (martian.core/explore m)
to see the handlers that martian can see.
Another thing you'll want to do is call bootstrap from an implementation namespace like martian.clj-http/bootstrap-openapi
as this will include interceptors to actually perform the http request (martian.core
does not have these).
Hope this helps!
Thank you, that is exactly what I needed!
Hey!
I'm having trouble getting started with martian. I'm trying to get a small example working so I'm trying to bootstrap against my own application's routes.
Here's the json that I have and some code that tries to bootstrap it. The result of calling
bootstrap-swagger
gives me amartian.core.Martian
but I think it's missing the interesting stuff. I don't see any paths. That doesn't seem right; what am I doing wrong?Thanks!