I have a API defined like so:
path:
/student:
post:
summary: Update student
requestBody:
required: true
content:
application/json:
schema:
$ref: 'JodaTime'
In my build.gradle
file I have this defined:
plugins {
id "org.openapi.generator" version "7.5.0"
}
generateSources {task ->
Task generateStubTask
dependencies {
implementation group: 'joda-time', name: 'joda-time', version: '2.12.7'
}
}
importMappings.put("JodaTime", "org.joda.time")
Of course this is heavily simplified but how do I reference the library object as part of the requestBody object?
I’ve tried using both importmappings and schemamappings like so:
importMappings.put(“JodaTime”, “org.joda.time”)
schemaMappings.put(“JodaTime”, “org.joda.time”)