-
Notifications
You must be signed in to change notification settings - Fork 57
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
Resolve external $refs. #40
Comments
if I'm having this issue, is the currently (only?) workaround to just declare parameters in routes? |
You can use the extrefs module (https://www.npmjs.com/package/extrefs) to resolve everything beforehand and pass to the schemas option, but I will be integrating directly as well I think. |
sorry, I misunderstood the root cause I'm having, and my issue is unrelated to this - it may not be in this module either |
What are you seeing? |
I'm still trying to iron out where the issue is occurring, but basically I see validation stop if I change from an in-route definition to a reference. I'm using swaggerize-restify & swaggerize-routes, as well as some more custom code #1: the route before replacement https://gist.github.com/paul42/472fa78f2890e6766956 again, I'm still trying to find out what portion of code is causing this strange behavior, I don't know if it's any of the krakenjs/* stuff or in house code, but if you have any hints on what to investigate, I'd be extremely appreciative - thanks for taking the time to respond already |
I have the same symptoms as @paul42 . using swaggerize-routes implicitly via swaggerize-hapi -- when using $ref, validation stops. |
I figured out what was wrong. In my case, I had |
@tlivings I'm looking to make this happen myself and submit a pull request. I plan on using swagger-parser as the main library, but it uses async callbacks. This would require an api change since right now its all synchronous code. Do you have any aversions to an API change? If you do, do you have any thoughts on adding this functionality? |
Yeah, I've considered adding this but the API change, at least for I'm not totally opposed to it. It just presents some additional challenges for integration. |
Not trying to troll, but with |
That's generally what I've recommended people to do before calling swaggerize. |
it seems like this is out of scope for the project given the design. I ended up doing the same as yall. this bug is kill |
No description provided.
The text was updated successfully, but these errors were encountered: