Open mdanilakis opened 9 months 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.
Describe the bug
Class and constructor variables are named after ref schema class name which does not compile. We are only using this template because of the handy
artifactType
param that can be set tolibrary
because we want the models only.How to Reproduce
Define a schema with props referencing another schema e.g.:
Expected behavior
Expected behavior would be to generate a class
MySchema
with a constructor and member variables named after the prop names e.g.:Actual behavior
Does not compile (variables already defined):