swagger-merger
swagger-merger copied to clipboard
Curly Brackets In Reference Paths
Switched to this package from openapi-merger
in hope for better, more predictable support of references.
Let's say, you want to have a file per path, like this:
paths:
/users/{id}/profile:
$ref: "./paths/users/{id}/profile.yml"
This is legal, as {
and }
are legal in Linux paths, and in YAML keys and values. However, after running swagger-merger
, the result is just that same $ref
inserted verbatim, without resolving it to the contents of the referenced file.
Looks like curly braces are not supported, which is quite unpredictable.