Skip to content

properties name changed specific name #15906

Open
@Mkeyur1920

Description

@Mkeyur1920

While I use swagger tool to make component at that time, I have to define some parameters or what kind of value that component have. So problem was like I don't get defined property/field name in auto-generated component. I need just 'values' instead of 'propertyValues'.

In autogenerated class my field name changed to 'propertyValues' even if I given name like just 'values'

using this plugin

id("org.openapi.generator")
in gradle

my config in gralde

openApiGenerate {
generatorName.set("kotlin-spring")
library.set("spring-boot")
inputSpec.set("${projectDir}/src/main/resources/openapi/schema.yml")
outputDir.set("${buildDir}/generated")
apiPackage.set("${basePackageName}.api")
invokerPackage.set("${basePackageName}.invoker")
modelPackage.set("${basePackageName}.model")
configOptions.set(
mapOf(
"dateLibrary" to "java8",
"interfaceOnly" to "true",
"useTags" to "true",
"useSpringBoot3" to "true",
"documentationProvider" to "springdoc",
"serverPort" to "8081",
"enumPropertyNaming" to "UPPERCASE",
"groupId" to "${project.group}",
"modelMutable" to "true"
)
)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    AnnouncementProject/release related announcements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions