-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
$ref to adjacent_file object in #/components/parameters block not resolving #23
Comments
No, references should work wherever allowed by the spec. Can you share your files in a gist so I can debug? |
Afraid i can't share them - but i can try to recreate on an example - i'll see what i can do. |
Thanks. The extension uses the same libraries as |
I'll admit this is a little confusing in the current version. The message means the reference cannot be resolved as an internal reference. The command you need to use is "OpenAPI Resolve and Lint" if your API definition is made of multiple parts. I'll probably soon release a new version where this is the default behaviour anyway. |
Loving the plugin! making lightweight of a new complex spec - but run into something you might not have caught yet.
I have references to both schema and parameter objects in an adjacent file.
If the reference is to
adjacent_file.yaml#/components/schemas/schemaObject
the link does resolveIf the reference is to
adjacent_file.yaml#/components/parameters/schemaObject
the link does not resolveI wonder if the plugin is only built to support the schemas block? I haven't tried the other available components sections: https://swagger.io/docs/specification/components/.
Thanks,
Craig
The text was updated successfully, but these errors were encountered: