Hello, I am currently tring to use Swagger to generate a Java client for the Pipedrive API.
I tried generating the client through the maven plugin - swagger-codegen/modules/swagger-codegen-maven-plugin at master · swagger-api/swagger-codegen · GitHub,
and through the cli generator - GitHub - swagger-api/swagger-codegen: swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition., but both of the methods give the same errors: in a couple of the classes there are fields which are of incompatible types.
For example the field “active_flag” is generated as the type “ActiveFlagEnum”, but the code is trying to convert it to a BigDecimal, and so when compiling the project, I get an error for incompatible types:
@JsonProperty(“active_flag”)
private ActiveFlagEnum activeFlag = new BigDecimal(1);
Could this be some sort of configuration option which I have to include when generating the client, or is there something wrong with the Pipedrive API or Swagger?