Forum Discussion

rfairgri's avatar
rfairgri
Regular Visitor
2 years ago

Resolving external references in an OpenAPI model

How does one resolve references to external files in an OpenAPI model?  Even after I set the resolveFully option to true, the parsed OpenAPI model still contains external references:

 

  • ParseOptions options = new ParseOptions(); options.setResolveFully(true);
  • OpenAPI api = new OpenAPIParser() .readLocation(url, null, options) .getOpenAPI();

I've also tried swagger-cli bundle, but that command either fails on recursive schemas if I specify the -r option, or, if I omit the -r option, resolves external references to what I can only describe as "self-referential gobbledygook".

No RepliesBe the first to reply