Skip to content
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

Extension of $ref resolution mechanism #385

Open
dstachowicz opened this issue Aug 20, 2024 · 0 comments
Open

Extension of $ref resolution mechanism #385

dstachowicz opened this issue Aug 20, 2024 · 0 comments

Comments

@dstachowicz
Copy link
Collaborator

dstachowicz commented Aug 20, 2024

The $ref mechanism can potentially support many use cases as referred to in issue #380

It would be nice, if the resolution mechanism could be extended, too. I'd propose that $refs can refer to:

  • Absolute paths via HTTP and FILE protocol (and possibly more protocols in the future)
  • Paths relative to the file/resource, where the $ref is placed (as in HTML).

This would allow for a simple interpretation of contracts when all relevant files are available locally as well as when the relevant files are provided as HTTP resources (e.g. when a non-local repository or an HTML export are involved), and simplify switching and reuse between local and distributed usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant