davidmoten / openapi-codegen

OpenAPI Java client and Spring server generator, strong typing, immutability, fail-fast validation, chained builders, feature rich
Apache License 2.0
8 stars 1 forks source link

compilation errror file name too long with very deep nested classes #180

Open davidmoten opened 6 months ago

davidmoten commented 6 months ago
codegenc ./APIs/openbanking.org.uk/account-info-openapi/3.1.7/openapi.yaml
codegen ./APIs/amazonaws.com/es/2015-01-01/openapi.yaml

gives

[ERROR] /tmp/client2615458670269948340/src/main/java/com/demo/api/schema/OBReadProduct2.java:[3435,77] error while writing com.demo.api.schema.OBReadProduct2.Data.Product.ProductItem.OtherProductType.LoanInterest.LoanInterestTierBandSet.LoanInterestTierBandSetItem.LoanInterestFeesCharges.LoanInterestFeesChargesItem.LoanInterestFeeChargeCap.LoanInterestFeeChargeCapItem.OtherFeeType.OtherFeeTypeItem.Builder: /tmp/client2615458670269948340/target/classes/com/demo/api/schema/OBReadProduct2$Data$Product$ProductItem$OtherProductType$LoanInterest$LoanInterestTierBandSet$LoanInterestTierBandSetItem$LoanInterestFeesCharges$LoanInterestFeesChargesItem$LoanInterestFeeChargeCap$LoanInterestFeeChargeCapItem$OtherFeeType$OtherFeeTypeItem$Builder.class: File name too long