OpenApi path refs?

Do I need to do something extra to bring in OpenApi references from outside of my .yaml file?

I’m trying to bring in just the paths we use from a massive OpenApiSpec, and generate code for just those. The path in the huge .yaml looks like

paths:
…
/flow/process-groups/{id}:
  get:

…

I think I should be able to bring it in with something like:

paths:
/flow/process-groups/{id}:
$ref: './nifi-openapi-cooked.yaml#/paths/flow~1process-groups~1{id}' # /flow/process-groups/{id}:
/bogus/url:
$ref: './nifi-openapi-cooked.yaml#/paths/bogus' # Does not exist

but the plugin is not generating an endpoint or an error message, even for the bogus path.

Did I miss a plugin setting?

So you’d want the plugin to traverse a reference to another file on the local filesystem? I don’t think that’s supported - please open a feature request.

1 Like