Class SimplifiedOptionalModule
java.lang.Object
com.github.victools.jsonschema.generator.impl.module.SimplifiedOptionalModule
- All Implemented Interfaces:
Module
Default module being included if
Option.SIMPLIFIED_OPTIONALS is enabled.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimplifiedOptionalModule(String... includedMethodNames) Constructor: setting the names of methods declared by theOptionalclass to include in its generated object schema. -
Method Summary
Modifier and TypeMethodDescriptionvoidApply this module to the given configuration builder instance.
-
Field Details
-
DEFAULT_INCLUDED_METHOD_NAMES
The method names to preserve for anOptionalinstance's schema representation: "get", "orElse", "isPresent".
-
-
Constructor Details
-
Method Details
-
applyToConfigBuilder
Description copied from interface:ModuleApply this module to the given configuration builder instance.- Specified by:
applyToConfigBuilderin interfaceModule- Parameters:
builder- configuration builder instance to which to apply this module
-