Ask a Question

Help with ModelConverters and Related Classes

SOLVED
jonathanlocke
New Contributor

Help with ModelConverters and Related Classes

I'm doing an integration with Swagger and I'm having trouble understanding how to use ModelConverters to resolve references between Schemas. The source code is a bit difficult for me to understand. Does anyone know how this works? Thanks!  -- Jon

2 REPLIES 2
ponelat
Staff

Hi @jonathanlocke 

 

I'm no expert of the Java stuff, but can take a stab at helping. 

Are you referring to https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Extensions#extending-core-resolver ? 

If so are you in an JAX-RS context or trying to use swagger-core (the library that does most of the OpenAPI stuff) outside of JAX-RS? 

 

If you have a minimal example of what you'd like to achieve, it'll help encourage more concrete answers 🙂 

Hi Ponelat,

 

Thanks for offering to help. I decided on a different direction and implemented a small, simplified OpenAPI subset. If you can make time to take a look, I could use feedback on how to improve it. See https://github.com/Telenav/kivakit-extensions/tree/develop/kivakit-microservice/src/main/java/com/te....

 

Thanks,

 

    Jonathan

cancel
Showing results for 
Search instead for 
Did you mean: