krakenjs / generator-swaggerize

Yeoman generator for design-driven apis with swagger 2.0 and krakenjs/swaggerize tools.
Other
70 stars 34 forks source link

allow for '$ref'd parameters for reusability #58

Closed paul42 closed 8 years ago

paul42 commented 8 years ago

in a correctly formed swagger api doc (as in, editor.swagger.io doesn't complain at you) you can have reusable parameters - they are 'referenced' by a single object with $ref : '#/parameters/namedParam' this allows for parameter reuse. I've made a change that I believe supports that. please take a look, and thanks for your time! for issue #54

paul42 commented 8 years ago

hmmm is anyone familiar enough with the project / Travis CI to help me figure out what failed?

Thanks in advance, Paul

subeeshcbabu-zz commented 8 years ago

operation.parameters could be undefined, may need to validate those scenarios.

tlivings commented 8 years ago

Would recommend using something like https://www.npmjs.com/package/json-pointer instead.

subeeshcbabu-zz commented 8 years ago

3.0.0 version is going to use swagger-parser to resolve and dereference the $ref schema. Closing this PR in favor of https://github.com/krakenjs/generator-swaggerize/milestone/1