Compare commits

..

2 Commits

Author SHA1 Message Date
978bb783e3
all url tests passing
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 5m1s
2023-08-27 17:17:14 -07:00
9fd98c176a
remove TODO 2023-08-27 17:05:20 -07:00
2 changed files with 5 additions and 3 deletions

View File

@ -180,8 +180,6 @@ pub fn main() anyerror!void {
}
},
.ec2_query_no_input => {
// TODO: hunt down this compile error:
// fmt.zig:459:5: error: invalid format string 's' for type 'models.ec2.2016-11-15.json.Filter
std.log.err("EC2 functions not yet working in 0.11", .{});
// // Describe regions is a simpler request and easier to debug
const result = try client.call(services.ec2.describe_regions.Request{}, options);

View File

@ -55,7 +55,11 @@ pub fn encodeInternal(
rc = try encodeInternal(allocator, parent, field_name, first, obj.*, writer, options);
} else {
if (!first) _ = try writer.write("&");
try writer.print("{s}{s}={any}", .{ parent, field_name, obj });
// @compileLog(@typeInfo(@TypeOf(obj)));
if (ti.child == []const u8 or ti.child == u8)
try writer.print("{s}{s}={s}", .{ parent, field_name, obj })
else
try writer.print("{s}{s}={any}", .{ parent, field_name, obj });
rc = false;
},
.Struct => if (std.mem.eql(u8, "", field_name)) {