-
Notifications
You must be signed in to change notification settings - Fork 24
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
Error: can't resolve reference #/definitions/User from id # #9
Comments
I use this project to expand swagger refs: https://github.com/duncanhall/expand-swagger-refs Here is a simple script I threw together that creates a http proxy that validates against a swagger doc (and expands the refs): https://gist.github.com/iadknet/7a908e9d7cd254cb7025a9d995ccaada |
@raghavchandra there used to be this https://github.com/gargol/swagger-express-validator/blob/24a83660fc33708e8938faf754c7d9e4870bc67c/test/helpers/schema-resolver.js simple schema resolving script, but I got rid of it to have less noise in the project |
@gargol @iadknet thanks. The expand-swagger-refs works well too. |
@raghavchandra regarding 3.0 spec support, I can't promise any dates, as this project was done during my spare time. I hope to do more research on the new spec and improve this package during my winter vacations (mid-December till January) |
In my schema, I have a definitions section which I use. It seems like it is not able to correctly parse the $ref in this case (probably because it doesnt fine an ID).
However, the below is a valid schema that should work. Anything that I am missing?
I get back –
Schema –
Thanks
The text was updated successfully, but these errors were encountered: