Skip to content

Commit

Permalink
Fix #133
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ganss committed Sep 12, 2019
1 parent a658737 commit 7691f09
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions XmlSchemaClassGenerator.Tests/xsd/simple/simple.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
<xs:element name="unsignedIntListElement" maxOccurs="unbounded" minOccurs="0" type="xs:unsignedInt" />
<xs:element name="unsignedLongListElement" maxOccurs="unbounded" minOccurs="0" type="xs:unsignedLong" />
<xs:element name="unsignedShortListElement" maxOccurs="unbounded" minOccurs="0" type="xs:unsignedShort" />
<xs:element name="bruksareal" minOccurs="0" maxOccurs="1" nillable="true" type="xs:double" />
</xs:sequence>
<xs:attribute name="anyURIAttribute" type="xs:anyURI" />
<xs:attribute name="base64BinaryAttribute" type="xs:base64Binary" />
Expand Down
1 change: 0 additions & 1 deletion XmlSchemaClassGenerator/TypeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,6 @@ private bool IsNillableValueType
get
{
return IsNillable
&& !IsNullableValueType
&& !(IsCollection || IsArray)
&& ((PropertyType is EnumModel) || (PropertyType is SimpleModel && ((SimpleModel)PropertyType).ValueType.IsValueType));
}
Expand Down

0 comments on commit 7691f09

Please sign in to comment.