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 copies over whole event schema into asyncapi operations field #18

Open
HansMartinJ opened this issue Nov 5, 2024 · 1 comment

Comments

@HansMartinJ
Copy link

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.
@HansMartinJ
Copy link
Author

Config:

asyncAPI: {
renderParsedSchemas: false // default is true
},
saveParsedSpecFile: true,
parseSchemas: false,
debug:true

@boyney123 boyney123 transferred this issue from event-catalog/generator-asyncapi Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants