diff --git a/lexrpc/base.py b/lexrpc/base.py index 7d97d8c..423b31b 100644 --- a/lexrpc/base.py +++ b/lexrpc/base.py @@ -211,7 +211,7 @@ def _maybe_validate(self, nsid, type, obj): fail(f'{nsid} has no schema for {type}') if self._truncate: - for name, config in schema.get('properties', []).items(): + for name, config in schema.get('properties', {}).items(): # TODO: recurse into reference, union, etc properties if max_graphemes := config.get('maxGraphemes'): val = obj.get(name)