When you define a simple component's schemas in your AsynAPI definition file with 2 properties and 2 different names whicth refer to the same object, the generator will generate a class with 2 members with the same names (the same name as the type).
The java class doens't compile and the addition @JsonProperty is not usefull (issue linked : @JsonProperty will not get imported in java file
When you define a simple component's schemas in your AsynAPI definition file with 2 properties and 2 different names whicth refer to the same object, the generator will generate a class with 2 members with the same names (the same name as the type). The java class doens't compile and the addition @JsonProperty is not usefull (issue linked : @JsonProperty will not get imported in java file
The right class generation must be the same has generate by the Java Spring Template project (https://github.com/asyncapi/java-spring-template/tree/master) whitch generate this class :