-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Anonymous class with syntax error #336
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
Hello @khalender
Could you please try to repeat generation? |
The issue is; If you define an object in the component which does not refer to a model definition such as;
In this case, the generator generates an AnonymousSchemaZ for propY which is not defined as a seperate model.This is the exact model class that is generated for propY.
The issue here is there is no props in this class. That s why this fails..
As a solution.. if there is no prop defined for an object, maybe just do not create a class instead assign Object type to that prop.
instead
|
🎉 This issue has been resolved in version 1.5.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
It generates an annonimous class with syntax error, if the payload is defined as such;
the created annonimous class is;
AnonymousSchema9 anonymousSchema9 = (AnonymousSchema9) o;
return
The text was updated successfully, but these errors were encountered: