Jonas Lagoni

Results 491 comments of Jonas Lagoni

> @jonaslagoni did you remember to add it to migration guide? @derberg doing it today yea 👍

Additional related issue: https://github.com/asyncapi/spec/issues/778

Related to https://github.com/asyncapi/spec/issues/868

Similar issue to https://github.com/asyncapi/spec/issues/778

Hey @xespirit, which version are you using? I am pretty sure this is an old bug from Modelina v2

In v3 I get the following (https://modelina.org/playground?language=java): ``` { "asyncapi":"2.5.0", "info":{ "title":"Streetlights API", "version":"1.0.0", "description":"The Smartylighting Streetlights API allows you\nto remotely manage the city lights.\n", "license":{ "name":"Apache 2.0", "url":"https://www.apache.org/licenses/LICENSE-2.0" }...

@xespirit even with next when I use the following AsyncAPI document it works fine (https://65f02a20166dac9eadcc846e--modelina.netlify.app/playground?language=java): ``` { "asyncapi":"2.5.0", "info":{ "title":"Streetlights API", "version":"1.0.0", "description":"The Smartylighting Streetlights API allows you\nto remotely manage...

Damn, yea thats a bug! https://github.com/asyncapi/modelina/blob/1239c9a03c1cccccd20ef9fd987219ee9d54107f/src/generators/java/JavaConstrainer.ts#L238 We need to add the dependency import like we do for Python here: https://github.com/asyncapi/modelina/blob/1239c9a03c1cccccd20ef9fd987219ee9d54107f/src/generators/python/PythonConstrainer.ts#L20 Do you mind helping to fix this?

No worries, created a good first issue for it: https://github.com/asyncapi/modelina/issues/1892 > Yes, it has something to do with $ref pointing to itself. There's no any complex setup. I have tried...