-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Invalid Java class generated for free-form Map data type by use of 'additionalProperties' property #322
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. |
Property 'additionalProperties' is available since AsyncAPI 2.0.0 see https://www.asyncapi.com/docs/reference/specification/v2.0.0 |
relevant to issue #272 |
I'm moving it to template repo, as CLI just rungs generation, has no control over the process |
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. |
🎉 This issue has been resolved in version 1.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
Async Generator generates a invalid java class for free-form Map data type through 'additionalProperties' property in schema/model declarations.
How to Reproduce
a sample AsyncAPI looks like this
by use of AsyncApi/cli Generator like
asyncapi generate fromTemplate ./sample.yaml @asyncapi/java-spring-template -p javaPackage=Exporter.models --output myoutputTest
an invalid java class is generated see its equals-method at last return, this class is not compilable
Expected behavior
a valid java class is generated for 'additionalProperties' property to compile
The text was updated successfully, but these errors were encountered: