This is now maintained as library https://github.com/appscode/kutil/tree/release-7.0/openapi
$ go install -v
$ kube-openapi-generator > swagger.json
From https://github.com/swagger-api/swagger-codegen#getting-started :
cd hack
git clone https://github.com/swagger-api/swagger-codegen
cd swagger-codegen
mvn clean package
cd ..
java -jar ./hack/swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \
-i swagger.json \
-l java \
-o java-client