-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Support OpenAPI 3 servers specification #121
Comments
Also, I am bootstrapping with (def radarr-api
(martian-http/bootstrap-openapi "https://raw.githubusercontent.com/Radarr/Radarr/develop/src/Radarr.Api.V3/swagger.json")) |
Hi, This is not currently supported in Martian. It probably could be without too much trouble. I'll have to do some reading on what that section means, but probably a first pass to just use the defaults would at least get you able to use it. Thanks for reporting. |
Hi, In #129 support was added for an option (def radarr-api
(martian-http/bootstrap-openapi
"https://raw.githubusercontent.com/Radarr/Radarr/develop/src/Radarr.Api.V3/swagger.json"
{:server-url "https://localhost:7878/api/v3"})) This is available in the latest snapshot |
A question, I have been eyeing this project for loading our OpenAPI 3 spec, is it, in general, supported by |
Hi @arichiardi , The OpenAPI spec is in general supported by martian, this was added in #90 and #91 with various extra bits added since. This issue in particular is still unaddressed and there are likely other small parts that are not supported but you should find that core functionality is all there. If you find something missing, issues and PRs are welcome as always. Cheers |
Please add to Readme this :server-url option. :) |
I am pretty new to swagger/openapi in general so please bear with me if this is already solved - I couldn't quite tell if it was the case.
I am trying to use this library with Radarr's OpenAPI and am having some problems. Their API is OpenAPI 3, specifically with a servers section as such:
However, trying
martian/url-for
on one of the endpoints, say:get-movie
results in the peculiar URLhttps://raw.githubusercontent.com{protocol}://{hostPath}/api/v3/movie
Any help would be appreciated as to how to use the
servers
section of the api with this library. Fantastic work on this, by the way, this library is quite wonderful!The text was updated successfully, but these errors were encountered: