-
Notifications
You must be signed in to change notification settings - Fork 48
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
Unable to reference a local yaml file. #14
Comments
I have the same problem |
Same... |
any workaround for the problem |
Hey guys - I was having the same problem, but not with this particular extension, but just in general. Ended up finding and using this: https://github.com/mohsen1/multi-file-swagger-example and then wrote a small node app to monitor my files and update when ever changes are made. Hope this helps |
Seems related to #45 |
The only one I can think of is to compile a single file as in the Step 6 of this article (https://davidgarcia.dev/posts/how-to-split-open-api-spec-into-multiple-files/). UPDATE: Make sure to have the correct paths, which are file specific. So assuming you have the following file structure:
In the main file you will write:
And in the Pet.yaml (notice the relative path to Pet.yaml!):
You can use |
Cannot reference an object type specified in another local yaml file.
Example:
Persons:
type: array
items:
$ref: "person.yaml#/Person"
The text was updated successfully, but these errors were encountered: