swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
yaml containing an int64 format query parameter of type integer gets the parameter translated to a Java Integer type. This should be a Java Long type.
Following the yaml below, currently generated code is
public void getData(Integer unixTimestamp)
which should be
public void getData(Long unixTimestamp)
Description
yaml containing an int64 format query parameter of type integer gets the parameter translated to a Java
Integer
type. This should be a JavaLong
type.Following the yaml below, currently generated code is
public void getData(Integer unixTimestamp)
which should bepublic void getData(Long unixTimestamp)
Swagger-codegen version
Regression in 3.0.2; worked correctly in 2.3.1
Swagger declaration file content or url
Command line used for generation
See reproduction.
Steps to reproduce
config.json
bash script:
Verify:
grep -rw unixTimestamp
on the generated output.This should indicate
Long
in all cases, instead ofInteger