OpenAPI Generator team implemented jackson-databind-nullable module which you should include to your project. The newest version is 0.2.6.

<dependency>
    <groupId>org.openapitools</groupId>
    <artifactId>jackson-databind-nullable</artifactId>
    <version>0.2.6</version>
</dependency>

If module will not be detected automatically you need to do it manually by:

ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new JsonNullableModule());

Or if you using Jackson in Spring project, then you can register it by:

@Bean
@Primary
public Jackson2ObjectMapperBuilder customObjectMapper() {
    return new Jackson2ObjectMapperBuilder()
            // other configs are possible
            .modules(new JsonNullableModule());
}
Answer from Michał Ziober on Stack Overflow
🌐
GitHub
github.com › OpenAPITools › jackson-databind-nullable › issues › 18
How to use this with Spring Boot · Issue #18 · OpenAPITools/jackson-databind-nullable
September 22, 2020 - Caused by: org.springframework... (no Creators, like default constructor, exist): no String-argument constructor/factory method to deserialize from String value ......
Discussions

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `org.openapitools.jackson.nullable.JsonNullable` (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
There was an error while loading. Please reload this page · Since 0.17 topic objects with leaders are failing to unmarshal, the exception we are seeing is: More on github.com
🌐 github.com
2
March 11, 2022
remove unused import org.openapitools.jackson.nullable.JsonNullable from generated model
Bug Report Checklist [ X] Have you provided a full/minimal spec to reproduce the issue? [ X] Have you validated the input using an OpenAPI validator (example)? [ X] What's the version of OpenAP... More on github.com
🌐 github.com
28
May 15, 2019
[Question] Do people successfully use this?
This may sound like a rant but that's not what's intended. I'd actually like to know if people successfully use this tool to generate code that runs in production because my experiences are pretty ... More on github.com
🌐 github.com
21
September 23, 2020
[BUG][JAVA] JsonNullable<?> is not generated for property define as nullable:true
Bug Report Checklist Have you provided a full/minimal spec to reproduce the issue? Have you validated the input using an OpenAPI validator (example)? Have you tested with the latest master to confi... More on github.com
🌐 github.com
18
February 15, 2024
🌐
javathinking
javathinking.com › blog › openapi-springboot-generator-jackson-no-string-argument-constructor-factory-method-to-deserialize-from-string-value
How to Fix OpenAPI SpringBoot Generator Jackson Error: JsonNullable No String Constructor for Deserialization — javathinking.com
If you’ve worked with **OpenAPI ... (no Creators, like default constructor, exist): no String-argument constructor/factory method to deserialize from String value`. This error typically arises when your generated DTOs use ...
🌐
Maven Repository
mvnrepository.com › artifact › org.openapitools › jackson-databind-nullable
Maven Repository: org.openapitools » jackson-databind-nullable
July 24, 2026 - JsonNullable wrapper class and Jackson module to support fields with meaningful null values.
🌐
GitHub
github.com › OpenAPITools › jackson-databind-nullable
GitHub - OpenAPITools/jackson-databind-nullable: JsonNullable wrapper class and Jackson module to support meaningful null values · GitHub
The ValueExtractor unwraps JsonNullable by default, so the constraint only sees the wrapper when unwrapping is skipped where it is used: import jakarta.validation.valueextraction.Unwrapping; import org.openapitools.jackson.nullable.jakarta.Present; @Present(payload = Unwrapping.Skip.class) public JsonNullable<String> color = JsonNullable.undefined();
🌐
GitHub
github.com › redhat-developer › app-services-sdk-java › issues › 233
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `org.openapitools.jackson.nullable.JsonNullable` (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator) · Issue #233 · redhat-developer/app-services-sdk-java
March 11, 2022 - com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of org.openapitools.jackson.nullable.JsonNullable (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)#233
Author: redhat-developer
Author: OpenAPITools
Find elsewhere
🌐
Maven Central
central.sonatype.com › artifact › org.openapitools › jackson-databind-nullable
org.openapitools:jackson-databind-nullable - Maven Central
pkg:maven/org.openapitools/jackson-databind-nullable@Loading... ... JsonNullable wrapper class and Jackson module to support fields with meaningful null values.
🌐
Javadoc.io
javadoc.io › doc › org.openapitools › jackson-databind-nullable › 0.2.3 › org › openapitools › jackson › nullable › JsonNullableModule.html
JsonNullableModule - jackson-databind-nullable 0.2.3 javadoc
Bookmarks · Latest version of org.openapitools:jackson-databind-nullable · https://javadoc.io/doc/org.openapitools/jackson-databind-nullable · Current version 0.2.3 · https://javadoc.io/doc/org.openapitools/jackson-databind-nullable/0.2.3 · package-list path (used for javadoc generation ...
🌐
Maven Central
central.sonatype.com › artifact › org.openapitools › jackson-databind-nullable › 0.2.6
Sonatype
pkg:maven/org.openapitools/jackson-databind-nullable@0.2.6 ... JsonNullable wrapper class and Jackson module to support fields with meaningful null values.
🌐
Jar-Download
jar-download.com › home › org.openapitools › jackson-databind-nullable › 0.1.0 › source code › jsonnullable.java
org.openapitools.jackson.nullable.JsonNullable Maven / Gradle / Ivy
org.openapitools.jackson.nullable.JsonNullable maven / gradle build tool code. The class is part of the package ➦ Group: org.openapitools ➦ Artifact: jackson-databind-nullable ➦ Version: 0.1.0
🌐
Maven Central
central.sonatype.com › artifact › org.openapitools › jackson-databind-nullable › 0.2.0
Maven Central: org.openapitools:jackson-databind-nullable:0.2.0
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.fasterxml.jackson</groupId> <artifactId>jackson-base</artifactId> <version>2.9.5</version> </parent> <groupId>org.openapitools</groupId> <artifactId>jackson-databind-nullable</artifactId> <packaging>jar</packaging> <name>JsonNullable Jackson module</name> <description>JsonNullable wrapper class and Jackson module to support fields with mea
🌐
Javadoc.io
javadoc.io › doc › org.openapitools › jackson-databind-nullable › 0.2.3 › org › openapitools › jackson › nullable › JsonNullableDeserializer.html
JsonNullableDeserializer - jackson-databind-nullable 0.2.3 javadoc
Bookmarks · Latest version of org.openapitools:jackson-databind-nullable · https://javadoc.io/doc/org.openapitools/jackson-databind-nullable · Current version 0.2.3 · https://javadoc.io/doc/org.openapitools/jackson-databind-nullable/0.2.3 · package-list path (used for javadoc generation ...
🌐
Javadoc.io
javadoc.io › doc › org.openapitools › jackson-databind-nullable › latest › index.html
jackson-databind-nullable 0.2.9 javadoc (org.openapitools)
Bookmarks · Latest version of org.openapitools:jackson-databind-nullable · https://javadoc.io/doc/org.openapitools/jackson-databind-nullable · Current version 0.2.9 · https://javadoc.io/doc/org.openapitools/jackson-databind-nullable/0.2.9 · package-list path (used for javadoc generation ...
🌐
GitHub
github.com › OpenAPITools › openapi-generator › issues › 7490
[Question] Do people successfully use this? · Issue #7490 · OpenAPITools/openapi-generator
September 23, 2020 - Cannot construct instance of `org.openapitools.jackson.nullable.JsonNullable` despite the config being set up. Again, please don't get me wrong. I'm sure that lots of effort has gone into both projects. Maybe I'm just doing something wrong? Although OAS 3.0.3 is from February the original 3.0.0 is quite dated.
Author: OpenAPITools
🌐
GitHub
github.com › OpenAPITools › openapi-generator › issues › 17873
[BUG][JAVA] JsonNullable<?> is not generated for property define as nullable:true · Issue #17873 · OpenAPITools/openapi-generator
February 15, 2024 - The problem is that the generator (gradle plugin 7.3.0) is not generating JsonNullable<?> for properties defined as nullable: true · Update 2: According docs, enabling x-is-jackson-optional-nullable extension should generate the expected code, but it has no any effect in generation.
Author: OpenAPITools
🌐
Javadoc.io
javadoc.io › doc › org.openapitools › jackson-databind-nullable › 0.2.1 › org › openapitools › jackson › nullable › package-summary.html
org.openapitools.jackson.nullable package summary - jackson-databind-nullable 0.2.1 javadoc
Bookmarks · Latest version of org.openapitools:jackson-databind-nullable · https://javadoc.io/doc/org.openapitools/jackson-databind-nullable · Current version 0.2.1 · https://javadoc.io/doc/org.openapitools/jackson-databind-nullable/0.2.1 · package-list path (used for javadoc generation ...
🌐
Githubhelp
githubhelp.com › OpenAPITools › jackson-databind-nullable
The jackson-databind-nullable from OpenAPITools - GithubHelp
But as JsonNullable is here to represent "optional" values, there shouldn't be a need to put it in a constructor.