event-catalog / event-catalog/generators
Generator copies over whole event schema into asyncapi operations field
- Dominant language
- TypeScript
- Stars
- 15
- Forks
- 16
- Avg merge
- 25m
- Merged PRs (30d)
- 4
Description
### I tried this:
Clone https://github.com/HansMartinJ/eventcatalog-sample-schema-generation-bug
- npm run generate
Download schema
http://localhost:3000/generated/services/service/service.yaml
### This happened:
The spec has duplicate schema definitions in channels and operations
### I expected this:
operations only has something like
```
channel:
$ref: '#/channels/target'
```
### Is there a workaround?
_No response_
### Anything else?
May prevent asyncapi visualiser from working correctly (but may also be issue with avro)
Go to http://localhost:3000/docs/services/service/1.0.0/asyncapi
Look at both operations
Only light/measuredjson has expandable schema
### EventCatalog Version
2.12.0, generator: 2.5.1
### Node.js Version
v23.1.0
### 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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.