2023.4 #168

Merged
edraft merged 56 commits from 2023.4 into master 2023-04-12 13:57:51 +02:00
2 changed files with 8 additions and 6 deletions
Showing only changes of commit cbb1860f25 - Show all commits

View File

@ -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)

View File

@ -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)