@Override
    public void applyToConfigBuilder(SchemaGeneratorConfigBuilder builder) {
        builder.forFields()
                .withTargetTypeOverridesResolver(SingleValueAsArrayModule::acceptSingleValueAsArray);
        builder.forMethods()
                .withTargetTypeOverridesResolver(SingleValueAsArrayModule::acceptSingleValueAsArray);
    }
Allow a container's item type as single instance alternative to an array, or return null for non-containers.

@param scope targeted field/method
@return collection containing both the container's item type and the container type as such, or null
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/module/SingleValueAsArrayModule.java