danielgtaylor / restish

Restish is a CLI for interacting with REST-ish HTTP APIs with some nice features built-in
https://rest.sh/
MIT License
900 stars 74 forks source link

Remote references in open api spec documents are not supported #203

Closed zak905 closed 1 year ago

zak905 commented 1 year ago

When an open api spec document contains a remote reference like:

 requestBody:
        $ref: "https://some-url.com/openapi.yml#/paths/~1object/post/requestBody"

restish fails to load the api and returns errors like Caught error: errors [cannot resolve reference

This supported by https://github.com/pb33f/libopenapi and is controlled by a flag named AllowRemoteLookup, more details on #202

danielgtaylor commented 1 year ago

Merged in #211