event-catalog / generator-asyncapi

AsyncAPI generator for EventCatalog
https://www.eventcatalog.dev/docs/development/integrations/async-api/intro
Other
9 stars 4 forks source link

Generator Breaks other existing physical contents #47

Closed XaaXaaX closed 1 month ago

XaaXaaX commented 1 month ago

I tried this:

While using generators the plugins use rmService when versions match and recreate the service again with updated markdown , etc.. but they remove all physical contents

A generaor removes any spec generated by other generator for the same service. This becomes a problem as for exp. when openapi removes asyncapi spec or vise versa , this leads to have a failing spec tag in service page but no spec presented behind

Maybe it can be applied at SDK level ???

Note: The issue created here but it is global in all plugins ,

This happened:

Add openapi and asyncapi for the same service with same version and running the generate command will keep only the last executed one ( in order presented in generators array of EC config )

The markdown state is tracked AND IS UPDATED but the physical spec file is removed

I expected this:

No response

Is there a workaround?

No response

Anything else?

No response

EventCatalog Version

latest

Node.js Version

node --version 20

Platform(s)

MacOS, Linux, Windows

Community Notes

boyney123 commented 1 month ago

This is now merged, thanks @XaaXaaX makes sense to me!