Commit 1b571bef authored by Torben Miny's avatar Torben Miny
Browse files

Merge branch 'fix/xml_empty_qualifier' into 'master'

adapter.xml: Finally fix deserialization of empty <qualifier> tags

Closes #132

See merge request !72
parents 1de1f32b 302f05e8
Pipeline #402281 failed with stages
in 1 minute and 29 seconds
......@@ -440,6 +440,8 @@ class AASFromXmlDecoder:
# TODO: simplify this should our suggestion regarding the XML schema get accepted
for constraint in element.findall(NS_AAS + "qualifier"):
if len(constraint) == 0:
if len(constraint) > 1:
logger.warning(f"{_element_pretty_identifier(constraint)} has more than one constraint, "
"using the first one...")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment