swagger-merger icon indicating copy to clipboard operation
swagger-merger copied to clipboard

Curly Brackets In Reference Paths

Open XedinUnknown opened this issue 5 days ago • 0 comments

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.

XedinUnknown avatar Jun 27 '24 14:06 XedinUnknown