mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-24 15:39:19 +00:00
[BUG][CLI][GENERATOR] NullPointer when not setting outputDir (updated) (#3752)
* Fixes NPE when no outputDir is set * Fix behaviors of default values for values not provided by user * Easier handling of default behavior in settings. * Fixes for dynamic config deserialization (specifically, ruby client sample fix) * Tests for WorkflowSettings (defaults, modified defaults, nulls) * Test modification of WorkflowSettings defaults for both class constructor and builder
This commit is contained in:
@@ -91,6 +91,7 @@ public class CodegenConfigurator {
|
||||
DynamicSettings settings = mapper.readValue(new File(configFile), DynamicSettings.class);
|
||||
CodegenConfigurator configurator = new CodegenConfigurator();
|
||||
configurator.generatorSettingsBuilder = GeneratorSettings.newBuilder(settings.getGeneratorSettings());
|
||||
configurator.workflowSettingsBuilder = WorkflowSettings.newBuilder(settings.getWorkflowSettings());
|
||||
return configurator;
|
||||
} catch (IOException ex) {
|
||||
LOGGER.error("Unable to deserialize config file: " + configFile, ex);
|
||||
|
||||
Reference in New Issue
Block a user