lerenn / asyncapi-codegen

An AsyncAPI Golang Code generator that generates all Go code from the broker to the application/user. Just plug your application to your favorite message broker!
Apache License 2.0
91 stars 23 forks source link

Inheritance feature #192

Closed codycoach closed 5 months ago

codycoach commented 5 months ago

Hi,

Since Asyncapi claimed that AsyncAPI is compatible with OpenAPI schemas. So it would be great to inherit the schema from openapi or an external source file.

For example

data:
  type: object
  $ref: './openapi.yml#/components/schemas/hello'

see more: https://www.asyncapi.com/docs/tutorials/getting-started/coming-from-openapi

lerenn commented 5 months ago

Hi @codycoach ! 😃

Excellent idea ! I would event say that we should also be able to inherit from other asyncapi file as well.

I can't promise you that it will be develop in the next days, but clearly it is a must-have feature that I'd like to see too.