Closed mackmilan closed 5 years ago
Hi @mackmilan, sorry for the delayed reply. Thank you for submitting the XML snippet and the model files. Unfortunately, I don't think that the supplied XML is exactly the same as the one that reproduced your error. There's neither file
element nor file
attribute present anywhere in that XML. When I pasted the XML and the model types in my tests, I got a different error caused by one of the attributes being absent. The corresponding property was not optional, so changing it to let userScalarValueType: String?
with the optional String?
fixed the error for these snippets.
I don't think that this is related to autoclosed tags. Would you be able to attach the complete snippet that causes the issue for you?
@MaxDesiatov, you are absolutely right, is not that xml, in fact, I can't reproduce the error anymore, I've changed the userScalarValueType attribute to optional, it works very well. Thank you for your time.
I have the following xml:
and the structs:
when I ran the decode, I get the error:
Fatal error: Unrecognized top-level element of type: NullBox: file
and it's related to the attributes array in Entity, could you help me please?