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 default value is available in the map with the key 'default'.
The valuse of the map are then copied into XsdAttribute#defaultElement using public class XsdAttribute extends XsdNamedElements { ... this.defaultElement = attributesMap.getOrDefault(DEFAULT_ELEMENT_TAG, defaultElement);
with the key public abstract class XsdAbstractElement { ... public static final String DEFAULT_ELEMENT_TAG = "defaultElement";
Changing to public static final String DEFAULT_ELEMENT_TAG = "default";
fixes the problem
The text was updated successfully, but these errors were encountered:
Describe the bug
The default values defined in an attribute definition are not parsed into the model
Expected behavior
The default values should be available in the XsdAttriibute#defaultElement
Library Version
Current master b7855d6
Solution
The default value is available in the map with the key 'default'.
The valuse of the map are then copied into XsdAttribute#defaultElement using
public class XsdAttribute extends XsdNamedElements { ... this.defaultElement = attributesMap.getOrDefault(DEFAULT_ELEMENT_TAG, defaultElement);
with the key
public abstract class XsdAbstractElement { ... public static final String DEFAULT_ELEMENT_TAG = "defaultElement";
Changing to
public static final String DEFAULT_ELEMENT_TAG = "default";
fixes the problem
The text was updated successfully, but these errors were encountered: