We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65131a5 commit f704ddcCopy full SHA for f704ddc
src/OneScript.StandardLibrary/XMLSchema/Objects/XSSimpleTypeDefinition.cs
@@ -64,8 +64,12 @@ private void InitContentTypeVariety()
64
else if (_type.Content is XmlSchemaSimpleTypeRestriction typeRestriction)
65
InitAtomicVariety(typeRestriction);
66
67
- else
68
- _variety = XSSimpleTypeVariety.Atomic;
+ else
+ {
69
+ var newRestriction = new XmlSchemaSimpleTypeRestriction();
70
+ _type.Content = newRestriction;
71
+ InitAtomicVariety(newRestriction);
72
+ }
73
}
74
75
private void InitListVariety(XmlSchemaSimpleTypeList typeList)
0 commit comments