I'm digging here around trying to find a solution, how to merge several OpenApi v3 component definitions in one file.
Let's imagine a situation:
- You decided to split your OpenApi into multiple files in different folders. (see image below)

- Now you need to combine all your components.v1.yaml into a single schema (i named it
blueprint.v1.yaml). Usually, I useswagger-clito merge all$refdependencies, but now it's not a case, because I can not refer to the whole components/schemas object list
- And use it to build a single OpenApi file with all fields filled: info, components, paths and so on with a
swagger-cli bundletool.
So, the question is - how to reuse already defined component blocks (files called components.v1.yaml) in my blueprint.v1.yaml file?
P.S. Every components.v1.yaml looks like this:

And a, for ex, location-create-single.v1.yaml path definition is shown on picture below. Mention, that all $ref referes to components.v1.yaml files.

swagger-clito merge an entire tree of files? All of your files link to each other, starting with the topmostblueprint.v1.yamlthrough the<component>-*.yamlfiles (e.g.location-*.yaml) down to the everycomponents.v1.yamlfile. What's the problem to traverse through them?