Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curly Brackets In Reference Paths #86

Open
XedinUnknown opened this issue Jun 27, 2024 · 1 comment
Open

Curly Brackets In Reference Paths #86

XedinUnknown opened this issue Jun 27, 2024 · 1 comment

Comments

@XedinUnknown
Copy link

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.

@dhyanio
Copy link

dhyanio commented Nov 29, 2024

@XedinUnknown
Use yaml-merger https://github.com/dhyanio/yaml-merger fast and performant swagger-merger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants