You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 54ccecd
Browse filesBrowse the repository at this point in the historyBrowse files
|useJackson3|Set it in order to use jackson 3 dependencies (only allowed when `useSpringBoot4` is set and incompatible with `openApiNullable`).||false|
101
101
|useJakartaEe|whether to use Jakarta EE namespace instead of javax||false|
102
+
|useJackson3|Use Jackson 3 instead of Jackson 2 for JSON processing. Only supported for 'native' and 'webclient' libraries.||false|
102
103
|useOneOfDiscriminatorLookup|Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and only one match in oneOf's schemas) will be skipped. Only jersey2, jersey3, native, okhttp-gson support this option.||false|
103
104
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface||false|
cliOptions.add(CliOption.newBoolean(USE_SPRING_BOOT4, "Generate code and provide dependencies for use with Spring Boot 4.x.", useSpringBoot4));
310
-
cliOptions.add(CliOption.newBoolean(USE_JACKSON_3, "Set it in order to use jackson 3 dependencies (only allowed when `" + USE_SPRING_BOOT4 + "` is set and incompatible with `"+OPENAPI_NULLABLE+"`).", useJackson3)); // Ensure the OAS 3.x discriminator mappings include any descendent schemas that allOf
310
+
cliOptions.add(CliOption.newBoolean(USE_JACKSON_3, "Set it in order to use jackson 3 dependencies (only allowed when `" + USE_SPRING_BOOT4 + "` is set and incompatible with `"+OPENAPI_NULLABLE+"`). For 'java' generator: only supported for 'native' and 'webclient' libraries.", useJackson3)); // Ensure the OAS 3.x discriminator mappings include any descendent schemas that allOf
311
311
// inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values,
312
312
// and the discriminator mapping schemas in the OAS document.
313
313
this.setLegacyDiscriminatorBehavior(false);
@@ -385,9 +385,19 @@ public void processOpts() {
385
385
thrownewIllegalArgumentException("openApiNullable cannot be set with useJackson3");
386
386
}
387
387
388
-
if(this.useJackson3){
388
+
// TODO
389
+
// if (useJackson3) {
390
+
// if (!libNative && !libWebClient) {
391
+
// LOGGER.warn("useJackson3 option is currently only supported for library=native|webclient. Ignoring useJackson3.");
0 commit comments