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

Undeterministic behavior when generation AllOf/AnyOf/OneOf with required fields #197

Closed lerenn closed 5 months ago

lerenn commented 5 months ago

During my last PR, I fixed some bugs with the AllOf/AnyOf/OneOf fields.

Unfortunately, there is a possibility that a field that uses a reference is processed before the schema referenced, because of the non deterministic order of a Golang map.

There should be a mechanism to detect and process dependencies before.