Skip to content

Commit

Permalink
Make Id key property required (fixes #342)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ganss committed Jun 28, 2022
1 parent 6525e3f commit cb253fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion XmlSchemaClassGenerator/TypeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ public override CodeTypeDeclaration Generate()
Documentation = {
new() { Language = English, Text = "Gets or sets a value uniquely identifying this entity." },
new() { Language = German, Text = "Ruft einen Wert ab, der diese Entität eindeutig identifiziert, oder legt diesen fest." }
}
},
IsRequired = true
};
Properties.Insert(0, keyProperty);
}
Expand Down

0 comments on commit cb253fd

Please sign in to comment.