generator icon indicating copy to clipboard operation
generator copied to clipboard

Start generating examples

Open derberg opened this issue 5 months ago • 0 comments

Examples like:

  • https://github.com/asyncapi/generator/blob/master/packages/templates/clients/websocket/javascript/example.js
  • https://github.com/asyncapi/generator/blob/master/packages/templates/clients/websocket/python/example.py
  • https://github.com/asyncapi/generator/blob/master/packages/templates/clients/websocket/dart/example.dart

These are hardcoded, but it causes issue:

  • these examples are only available in the repository, so if someone generates something with the template, they do not have the example available first-hand
  • these are easy to break, whenever we change something in templates, we forget to update examples

Of course it is not enouth to move example into template, and make sure it is dynamicly generated. We need to figure out how we can make sure these examples work. Maybe we should somehow use them in the acceptance tests?

derberg avatar Jun 25 '25 14:06 derberg