Skip to content

Commit

Permalink
Do not add restriction attributes on collections (fixes #506)
Browse files Browse the repository at this point in the history
  • Loading branch information
mganss committed May 14, 2024
1 parent 88e4bd3 commit ac85827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XmlSchemaClassGenerator/TypeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ private void AddDocs(CodeTypeMember member)

AddDescription(member.CustomAttributes, docs);

if (PropertyType is SimpleModel simpleType)
if (PropertyType is SimpleModel simpleType && !IsEnumerable)
{
docs.AddRange(simpleType.Documentation);
docs.AddRange(simpleType.Restrictions.Select(r => new DocumentationModel { Language = English, Text = r.Description }));
Expand Down

0 comments on commit ac85827

Please sign in to comment.