diff --git a/src/cpl_cli/configuration/build_settings.py b/src/cpl_cli/configuration/build_settings.py index bc97721f..60431999 100644 --- a/src/cpl_cli/configuration/build_settings.py +++ b/src/cpl_cli/configuration/build_settings.py @@ -18,10 +18,10 @@ class BuildSettings(ConfigurationModelABC): main: str = None, entry_point: str = None, include_package_data: bool = None, - included: list[str] = None, - excluded: list[str] = None, - package_data: dict[str, list[str]] = None, - project_references: list[str] = None, + included: list = None, + excluded: list = None, + package_data: dict = None, + project_references: list = None, ): ConfigurationModelABC.__init__(self) diff --git a/src/cpl_core/utils/json_processor.py b/src/cpl_core/utils/json_processor.py index afa3ea23..1269263e 100644 --- a/src/cpl_core/utils/json_processor.py +++ b/src/cpl_core/utils/json_processor.py @@ -17,12 +17,14 @@ class JSONProcessor: name = String.first_to_upper(String.convert_to_camel_case(parameter.name)) name_first_lower = String.first_to_lower(name) - if name in values or name_first_lower in values: + if name in values or name_first_lower in values or name.upper() in values: value = "" if name in values: value = values[name] - else: + elif name_first_lower in values: value = values[name_first_lower] + else: + value = values[name.upper()] if isinstance(value, dict) and not issubclass(parameter.annotation, dict): value = JSONProcessor.process(parameter.annotation, value)