Class NullableSchemaModule
java.lang.Object
net.jacobpeterson.jet.openapiannotationsplugin.schemagenerator.module.nullable.NullableSchemaModule
- All Implemented Interfaces:
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
-
Constructor Details
-
NullableSchemaModule
public NullableSchemaModule()
-
-
Method Details
-
applyToConfigBuilder
- Specified by:
applyToConfigBuilderin interfaceModule
-