asyncapi / java-template

Java template for the AsyncAPI Generator
Apache License 2.0
10 stars 12 forks source link

Generator error. Unsupported type #130

Closed sergey-morenets closed 5 months ago

sergey-morenets commented 1 year ago

Describe the bug

Error while using AsyncAPI Generator and java-template.

How to Reproduce

We tried to use AsyncAPI Generator: asyncapi generate fromTemplate spec.yml @asyncapi/java-template -p server=dev --force-write But received an error: Generator error. Unsupported type If we add --debug flag then another message is printed: File \asyncapi\index.js couldn't be found. Error: ENOENT: no such file or directory, stat '\asyncapi\index.js'

Expected behavior

AsyncAPI Generator should generate Java service. If there's an error in AsyncAPI document then java-template should clearly specify part of the document that contains error(s).

github-actions[bot] commented 1 year ago

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.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

predic8 commented 1 year ago

@sergey-morenets I have the same problem. It seems that the generator only supports strings and integer. float and number is not implemented.

Looks like the main branch of the java template supports float, number, ... but the version that is used in the asycgenerator does not.

sergey-morenets commented 1 year ago

@sergey-morenets I have the same problem. It seems that the generator only supports strings and integer. float and number is not implemented.

Looks like the main branch of the java template supports float, number, ... but the version that is used in the asycgenerator does not.

Hi @predic8

Thank you for the explanation. I just checked my AsyncAPI spec and couldn't find either integer or floating-point numbers. I use only string properties.

github-actions[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart: