Class NullableSchemaModule

java.lang.Object
net.jacobpeterson.jet.openapiannotationsplugin.schemagenerator.module.nullable.NullableSchemaModule
All Implemented Interfaces:
Module

@NullMarked public class NullableSchemaModule extends Object implements Module
NullableSchemaModule is a Module that uses NullableUtil.isFieldNullable(Field) for SchemaGeneratorConfigPart.withRequiredCheck(Predicate).

Note: SchemaGeneratorConfigPart.withNullableCheck(ConfigFunction) is not applied because SchemaGenerator uses anyOf for all nullable properties, which adds unnecessary complexity to the schema, and many OpenAPI generators reference required for nullability.