diff --git a/XmlSchemaClassGenerator/ModelBuilder.cs b/XmlSchemaClassGenerator/ModelBuilder.cs index 44ddfb0d..44da26d1 100644 --- a/XmlSchemaClassGenerator/ModelBuilder.cs +++ b/XmlSchemaClassGenerator/ModelBuilder.cs @@ -387,6 +387,7 @@ private TypeModel CreateTypeModel(XmlSchemaSimpleType simpleType, NamespaceModel Namespace = namespaceModel, XmlSchemaName = qualifiedName, XmlSchemaType = simpleType, + IsAnonymous = string.IsNullOrEmpty(simpleType.QualifiedName.Name), }; enumModel.Documentation.AddRange(docs);