@Override
    public void adjustDuplicateNames(Map<DefinitionKey, String> subschemasWithDuplicateNames, SchemaGenerationContext generationContext) {
        this.strategy.adjustDuplicateNames(subschemasWithDuplicateNames, generationContext);
        subschemasWithDuplicateNames.entrySet().forEach(entry -> entry.setValue(this.cleanUpTask.apply(entry.getValue())));
    }
Constructor expecting a naming strategy to be wrapped and the applicable clean-up task.

@param strategy definition naming strategy to be wrapped
@param cleanUpTask task discarding/replacing illegal characters
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/naming/CleanSchemaDefinitionNamingStrategy.java