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

generate anonymous classes with name Option# not Object# #158

Closed davidmoten closed 5 months ago

davidmoten commented 5 months ago

reads a little bit better.

For example:

Before:

Dog.pet(Pet.description("brown and curly")) 
                .object1(Dog.Object1.breed(Breed.CROSS)) //
                 .build()

After this PR:

Dog.pet(Pet.description("brown and curly")) 
                .option1(Dog.Option1.breed(Breed.CROSS)) //
                 .build()