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

unwanted example: null entries are added in the merged openapi.yml #183

Open
ndr-brt opened this issue Sep 26, 2023 · 2 comments
Open

unwanted example: null entries are added in the merged openapi.yml #183

ndr-brt opened this issue Sep 26, 2023 · 2 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation
Milestone

Comments

@ndr-brt
Copy link
Member

ndr-brt commented Sep 26, 2023

Bug Report

Describe the Bug

The openapi-merger-gradle-plugin is adding unwanted example: null entries to the merged openapi.yml file, this happens when an example is not provided.

Doing this, every visualization (swaggerhub included) shows null response bodies.

Expected Behavior

To have that example: null not added

Steps to Reproduce

  • create api specs with resolve task
  • merge them with mergeOpenApiFiles
  • see the differences between the single files and the merged one

Possible Implementation

I opened an issue on the plugin repository: kpramesh2212/openapi-merger-plugin#21
But while we are waiting for a fix we could apply a patch by removing all the example: null occurrencies from the merged files.

@ndr-brt ndr-brt added bug Something isn't working documentation Improvements or additions to documentation labels Sep 26, 2023
@github-actions
Copy link

This issue is stale because it has been open for 28 days with no activity.

@github-actions github-actions bot added the stale label Oct 25, 2023
@ndr-brt ndr-brt added this to the Backlog milestone Oct 25, 2023
@ndr-brt ndr-brt removed the stale label Oct 25, 2023
Copy link

This issue is stale because it has been open for 28 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant