@Override
    public String getDefinitionNameForKey(DefinitionKey key, SchemaGenerationContext generationContext) {
        String output = this.strategy.getDefinitionNameForKey(key, generationContext);
        return this.cleanUpTask.apply(output);
    }
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