diff --git a/target_s3_parquet/data_type_generator.py b/target_s3_parquet/data_type_generator.py index f7e035b..8dfc94c 100644 --- a/target_s3_parquet/data_type_generator.py +++ b/target_s3_parquet/data_type_generator.py @@ -55,7 +55,7 @@ def generate_tap_schema(schema, level=0, only_string=False): if cleaned_type == "object": field_definitions[name] = build_struct_type( - attributes["properties"], new_level + attributes.get("properties", {}), new_level ) elif cleaned_type == "array": array_type = get_valid_types(attributes["items"]["type"])