Skip to content

Merge model kubernetes section to template for extract tool #1130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 20, 2022
Prev Previous commit
Next Next commit
Resolve problem with simple map elements
  • Loading branch information
rakillen committed May 19, 2022
commit 4da6db221d204ce6db9bd4f675b65a2ca5dc9566
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ def _update_dictionary(output_dictionary, model_dictionary, schema_folder, schem
method_name=_method_name)
return

# no type checking for elements of simple (single type) map
if wko_schema_helper.is_simple_map(schema_folder):
for key, value in model_dictionary.items():
output_dictionary[key] = value
return

properties = wko_schema_helper.get_properties(schema_folder)

for key, value in model_dictionary.items():
Expand All @@ -143,7 +149,6 @@ def _update_dictionary(output_dictionary, model_dictionary, schema_folder, schem
_update_list(output_dictionary[key], value, property_folder, next_schema_path, output_file_path)
else:
output_dictionary[key] = value
pass


def _update_list(output_list, model_list, schema_folder, schema_path, output_file_path):
Expand Down