Skip to content

Commit

Permalink
teste
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsavegnago committed Nov 12, 2024
1 parent 7da0625 commit a52ec2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec_driven_model/models/spec_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def _build_attr(self, node, fields, vals, path, attr):
if value is None or value == []:
return False
prefix = f"{self._spec_prefix()}"
# key = f"{prefix}_{attr[1].metadata.get('name', attr[0])}"
key = f"{prefix}_{attr[0]}"
key = f"{prefix}_{attr[1].metadata.get('name', attr[0])}"
# key = f"{prefix}_{attr[0]}"
child_path = f"{path}.{key}"

# Is attr a xsd SimpleType or a ComplexType?
Expand Down

0 comments on commit a52ec2e

Please sign in to comment.