RicoSuter / NJsonSchema

JSON Schema reader, generator and validator for .NET
http://NJsonSchema.org
MIT License
1.37k stars 529 forks source link

IEquatable<T> interface #1713

Open bstordrup opened 1 month ago

bstordrup commented 1 month ago

In order for classes like PropertyModelBase and PropertyModel to be used in dictionaries and equality operations elsewhere, I think it would be a good approach to implement the IEquatable<T> interface on these.

For example, the PropertyModelBase could implement the interface based on the PropertyName member.