Manfred / Reynard

Minimal OpenAPI client for Ruby.
MIT License
12 stars 2 forks source link

Load relative references $ref relative to the current file instead of the specification #32

Closed Manfred closed 1 year ago

Manfred commented 1 year ago

When loading an external reference from an external reference we should resolve relative references relative to the current file and not the specification.

# schemas/books/author.yml
"$ref": "./address.yml"

We should attempt to load schemas/books/address.yml and not schemas/address.yml or address.yml.