openapi-generator
openapi-generator copied to clipboard
[BUG] Jackson dependency required when okhttp-gson is choosen
The generated code for java with okhttp-json has a problem.
For some in-house reason we can't use Jackson libraries.
Until version 7.2.0 the file JSON.java is generated with a Google dependency (com.google.gson.internal.bind.util.ISO8601Utils) but from 7.3.0 version a Jackson dependency is used (com.fasterxml.jackson.databind.util.StdDateFormat) what causes a compilation error.
Dependency used in my project is: org.openapitools:openapi-generator-gradle-plugin:7.5.0
Configuration is:
openApiGenerate {
generatorName = "java"
library = "okhttp-gson"
inputSpec = "...".toString()
outputDir = "...".toString()
apiPackage = "..."
invokerPackage = "..."
modelPackage = "..."
configOptions = [
dateLibrary : "java8",
disallowAdditionalPropertiesIfNotPresent: "false",
enumUnknownDefaultCase : "true",
useOneOfDiscriminatorLookup : "true"
]
globalProperties = [
skipFormModel: "false",
apiTests : "false",
modelTests : "false"
]
skipValidateSpec = true
logToStderr = true
generateAliasAsModel = false
enablePostProcessFile = false
cleanupOutput = true
}