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

Generator removes the already existing old versions content #28

Open
XaaXaaX opened this issue Oct 19, 2024 · 0 comments
Open

Generator removes the already existing old versions content #28

XaaXaaX opened this issue Oct 19, 2024 · 0 comments

Comments

@XaaXaaX
Copy link

XaaXaaX commented Oct 19, 2024

I tried this:

Using both asyncapi and openapi generators leads to unintentional behaviors
Using asyncapi generator generates the version 1 and 2 of service "Service A"
Using openapi generator for only version 2 of same service "Service A"

This happened:

The Asyncapi generator generates both service versions , Version 2 as latest and version 1 as versioned
When openapi generator executed it removes all contents of service A v1.0.0 except the specfile

I expected this:

The generator must detect the corresponding version and extend it without touching the other versions being the latest or previous ones.

Is there a workaround?

Check if the exact version exists and verify if its newer than latest or not
Add a new api method in SDk to allow adding service as a versioned one directly and if version is
The generator will create a version in versioned folder if the current service version is lower than latest
Screenshot 2024-10-20 at 00 36 53

Anything else?

TWO SCREENSHOTS RPRESENTING THE PROBLEM

During OpenApi generation
Screenshot 2024-10-20 at 17 06 06

After openapi spec generation ends with success
Screenshot 2024-10-20 at 17 06 31

EventCatalog Version

No response

Node.js Version

No response

Platform(s)

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.
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