swagger-api / swagger-parser

Swagger Spec to Java POJOs
http://swagger.io
Apache License 2.0
786 stars 531 forks source link

schema.$ref not parsed into Parameter Model #841

Open ka05 opened 6 years ago

ka05 commented 6 years ago

I need to know which models are associated with each route so that I can generate webservice code. I am already aware that swagger-codegen and openapi-codegen exist, but i need to roll my own solution as those solutions include too much cruft

JehandadK commented 6 years ago

Very unclear what you are trying to say. If you can share the spec we can find out issues in it. Most probably you are not writing spec correctly due to which the $ref is not resolved. Or you can look deeply into logs. Which can give you a hint!

JehandadK commented 6 years ago

Also try

ParserOptions.setResolveFully(true);