summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler
diff options
context:
space:
mode:
Diffstat (limited to 'tools/json_schema_compiler')
-rw-r--r--tools/json_schema_compiler/model.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
index 753274f..29c54a0 100644
--- a/tools/json_schema_compiler/model.py
+++ b/tools/json_schema_compiler/model.py
@@ -321,6 +321,9 @@ class _PropertyTypeInfo(object):
def __repr__(self):
return self.name
+ def __eq__(self, other):
+ return isinstance(other, _PropertyTypeInfo) and self.name == other.name
+
class PropertyType(object):
"""Enum of different types of properties/parameters.
"""