oliyh / martian

The HTTP abstraction library for Clojure/script, supporting OpenAPI, Swagger, Schema, re-frame and more
MIT License
529 stars 44 forks source link

no routes found for my swagger OpenApi 3.0 definition #139

Closed behrica closed 2 years ago

behrica commented 2 years ago

I just started with martian and it's a geat project.

On this swagger json definition:

"https://api.swaggerhub.com/apis/EFSA/fsbio/1.0.0"

I get an empty vector back from (martian/explore) using this code :

 (require '[martian.core :as martian]
           '[martian.clj-http :as martian-http])
  (def url "https://api.swaggerhub.com/apis/EFSA/fsbio/1.0.0")

  (def m (martian-http/bootstrap-openapi
          url
          {:server-url "https://efsa-ai-prototypes.westeurope.cloudapp.azure.com/efsafsnlpapi/api/1.0.0"}))
  (martian/explore m)
behrica commented 2 years ago

I found the reason. I have no operationIds defined.

behrica commented 2 years ago

as documented :smile: