Skip to content

Commit

Permalink
#622 array source correct
Browse files Browse the repository at this point in the history
  • Loading branch information
karina-klinkeviciute committed Jul 5, 2024
1 parent 5493305 commit be16b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spinta/manifests/xsd/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,8 @@ def _properties_from_type_references(
property_id, prop = model.simple_element_to_property(typed_element, is_array=is_array)
prop["external"]["name"] = prop["external"]["name"].replace("/text()", '')
if new_referenced_element is not None and new_referenced_element.get("mixed") != "true":
_, referenced_prop = model.simple_element_to_property(new_referenced_element)
prop["external"]["name"] += f'/{referenced_prop["external"]["name"].replace("/text()", "")}'
_, referenced_prop = model.simple_element_to_property(previous_referenced_element)
prop["external"]["name"] = f'{previous_referenced_element_name}/{prop["external"]["name"]}'
property_id = to_property_name(previous_referenced_element_name)
if is_array:
property_id += "[]"
Expand Down

0 comments on commit be16b11

Please sign in to comment.