try to get the storage json correct

This commit is contained in:
2026-02-17 10:07:50 -05:00
parent a5a5d41e50
commit 12ba2e57d7

View File

@@ -273,7 +273,7 @@ serialize_table_metadata :: proc(metadata: ^Table_Metadata) -> ([]byte, bool) {
fmt.sbprintf(&gsi_builder, `{{"AttributeName":"%s","KeyType":"%s"}}`,
ks.attribute_name, key_type_to_string(ks.key_type))
}
strings.write_string(&gsi_builder, `],"Projection":{{"ProjectionType":"`)
strings.write_string(&gsi_builder, `],"Projection":{"ProjectionType":"`)
switch gsi.projection.projection_type {
case .ALL: strings.write_string(&gsi_builder, "ALL")
case .KEYS_ONLY: strings.write_string(&gsi_builder, "KEYS_ONLY")
@@ -290,7 +290,7 @@ serialize_table_metadata :: proc(metadata: ^Table_Metadata) -> ([]byte, bool) {
}
strings.write_string(&gsi_builder, "]")
}
strings.write_string(&gsi_builder, "}}")
strings.write_string(&gsi_builder, "}")
}
strings.write_string(&gsi_builder, "]")