-
Notifications
You must be signed in to change notification settings - Fork 58
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
Relative and absolute paths and rewriting #94
Comments
If I try to do this with simple specification allowed relative paths, here is the command I run:
Heres the cli output:
Here's the
Heres the
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
The OpenApi spec allows relative and absolute paths to be used in
$ref
yet when we attempt this we get told the specification file cannot be loaded.I have looked at rewriting this, and the best we have come up with is
-spec-rewrite-url=./=http://localhost:3123/ \
and prefixing all of our paths with./
.This will not scale well, as any paths that contain
../
to go up a level will also be rewritten incorrectly.I would like to posit that the replacement become anchored to the beginning of the
$ref
string, and not all matches within the string.The text was updated successfully, but these errors were encountered: