Skip to content

Commit

Permalink
Initialize definitions with a blank dict instead of None
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishmeet Bindra committed Jan 8, 2024
1 parent b0a031e commit d6cd1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydanticrud/backends/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def index_definition(index_name, keys, gsi=False):
class DynamoSerializer:
def __init__(self, schema, ttl_field=None):
self.properties = schema.get("properties")
self.definitions = schema.get("definitions")
self.definitions = schema.get("definitions", {})
self.ttl_field = ttl_field

def _get_type_possibilities(self, field_name) -> Set[tuple]:
Expand Down

0 comments on commit d6cd1e8

Please sign in to comment.