You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method should_reset_required resets minOccurs to zero for situations where a type on an element is not defined. What is the rationale for this behavior?
@classmethoddefshould_reset_required(cls, attr: Attr) ->bool:
""" Return whether the min occurrences for the attr needs to be reset. @Todo figure out if wildcards are supposed to be optional! """return (
notattr.is_attributeandattr.defaultisNoneandobjectinattr.native_typesandnotattr.is_list
)
The text was updated successfully, but these errors were encountered:
A fix on #820 and a further improvement on #828 should take care of this case.
The issue in not with that reset required, that's about wildcards (hint the todo). This issue is about how and when xsdata is calculating the min occurs for choice elements.
It used to be too soon, now I 've moved it later in the flow and made sure if the choice has only one element the min occur restriction doesn't change
The method should_reset_required resets minOccurs to zero for situations where a type on an element is not defined. What is the rationale for this behavior?
The text was updated successfully, but these errors were encountered: