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

Unable to use external $ref's with OpenAPI #208

Open tomisme opened 4 hours ago

tomisme commented 4 hours ago

I tried to use Martian with this OpenAPI spec: https://api-docs.solaranalytics.com/OpenAPI-Specs/sapublic-openapi.yaml

But when I ran martian/explore it came back with an empty vec. I think the issue is the external refs in the paths e.g. $ref: "./sainternal/V3/paths/token.yaml#/TokenV3"

Looking at the Martian code it seems like martian.schema/lookup-ref should be throwing "Non-local references are not supported" but I don't get any errors when bootstrapping.

tomisme commented 2 hours ago

Apologies, just saw this message about remote refs not currently supported https://github.com/oliyh/martian/issues/190#issuecomment-1913177393