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

Root level extensions excluded from merged file #117

Open
surfsoft opened this issue Jan 20, 2021 · 0 comments
Open

Root level extensions excluded from merged file #117

surfsoft opened this issue Jan 20, 2021 · 0 comments

Comments

@surfsoft
Copy link

OpenAPI supports extension points at a numbed of locations within an OpenAPI specification (see the docs at swagger.io for further details.

I've a pair of OpenAPI files, both with extensions at the operation level, and also at the root level. The root level extensions look something like this:

File 1:

x-myext-api
  service1:
    publish: true
    name: "Service 1"

File 2:

x-myext-api
  service2:
    publish: false

What I was hoping for was for swagger-combine to produce was this:

x-myext-api
  service1:
    publish: true
    name: "Service 1"
  service2:
    publish: false

What actually happens is that no part of either extension is included. My extensions at the operation level are carried through correctly.

Unsure if this is a bug, or should be classified as a feature request.

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

1 participant