Commit graph

295 commits

Author SHA1 Message Date
Simon Hartcher
007c5a8a15 refactor(detectArrayStyle): use elements iterator 2025-04-30 09:48:14 +10:00
Simon Hartcher
288f88dfb6 chore: use scoped log 2025-04-29 17:08:17 +10:00
Simon Hartcher
7438642d91 fix: xml parser can now handle repeated root arrays 2025-04-29 16:57:11 +10:00
68a77db6d9
Merge PR 15: Handle empty response bodies and multiple types of timestamps
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m18s
2025-04-28 20:15:12 -07:00
Simon Hartcher
dc05b20bda fix: undefined behaviour for responses with no body 2025-04-24 16:50:46 +10:00
Simon Hartcher
0ac10d5798 chore: 404 is not an error in most situations 2025-04-24 11:00:14 +10:00
Simon Hartcher
324ed9a7e3 chore: add URL to reportTraffic output 2025-04-24 10:33:47 +10:00
Simon Hartcher
dc50fd882c fix: restore accidentally commented code 2025-04-24 10:32:48 +10:00
Simon Hartcher
3c7b336298 fix: use arena so that set headers no longer leak memory 2025-04-23 16:41:06 +10:00
Simon Hartcher
0fe727c7eb fix: xml memory leaks using arena 2025-04-23 16:39:04 +10:00
Simon Hartcher
bc328e72ad fix: json memory leaks using arena 2025-04-23 16:37:28 +10:00
Simon Hartcher
5a8cceaa0b chore: wip refactor of FullResponse to use arena allocator to simplify memory management 2025-04-23 16:33:20 +10:00
Simon Hartcher
8007a910dd refactor: create shared lib for json 2025-04-23 12:15:04 +10:00
Simon Hartcher
29e9dd481b refactor: extract date methods into shared date lib 2025-04-23 11:51:53 +10:00
Simon Hartcher
3cae1882f7 refactor(endPointFromUri): parse Uri using standard library
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m13s
2025-04-23 10:44:56 +10:00
Simon Hartcher
3fea7d9f0e refactor: handle empty response bodies and multiple types of timestamps 2025-04-22 16:06:50 +10:00
f4c306a2df
support rest_xml with non-string payloads (e.g. S3 create bucket)
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m17s
2025-04-18 15:04:43 -07:00
52f99bb35f
split strings from other types that need xml serialization 2025-04-18 11:21:42 -07:00
0a21a9f184
add failing test for S3 create bucket 2025-04-18 11:20:58 -07:00
28698e8ec4
add xml serialization capabilities
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m6s
2025-04-18 10:20:22 -07:00
ea14e3b90a
better test web server management
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m20s
2025-04-17 17:42:10 -07:00
12c7c46594
add test server timeout 2025-04-16 19:35:47 -07:00
Simon Hartcher
1b4788f469 fix: undefined behaviour in parseJsonData 2025-04-08 12:49:59 +10:00
Simon Hartcher
b5cd321263 fix(TestSetup): undefined behaviour 2025-04-08 11:39:19 +10:00
8421fd9e55
merge pr #6 allowing dependency on service model 2025-03-23 16:17:04 -07:00
9e8b3a6fc6
fix json serialization for null/empty maps 2025-03-21 09:59:33 -07:00
4f16553410
update to zig 0.14.0 2025-03-20 08:18:37 -07:00
Simon Hartcher
303af8661c fix: make modules depend on codegen 2025-03-13 14:32:03 +11:00
8c68dd6902
add support for raw responses beginning with name of single field in response struct 2025-02-05 13:24:09 -08:00
96e2b7bbc1
support for timestamp as f128 (more)
f128 is not really the correct data type long term. More information on the exact details are
https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html and
https://smithy.io/2.0/spec/protocol-traits.html\#timestampformat-trait

But...it will hold all our values and parses correctly, so we can use it for now
2025-02-05 13:23:55 -08:00
acd6589909
add support for raw responses beginning with name of single field in response struct 2025-02-05 13:22:52 -08:00
78b36e2316
support for timestamp as f128 (more)
f128 is not really the correct data type long term. More information on the exact details are
https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html and
https://smithy.io/2.0/spec/protocol-traits.html\#timestampformat-trait

But...it will hold all our values and parses correctly, so we can use it for now
2025-02-05 13:21:53 -08:00
97b784f8e3
cleanup main, re-enable riscv64-linux 2024-10-17 12:00:20 -07:00
3d78705ea5
update to latest zig nominated
Some checks failed
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Failing after 26s
aws-zig nightly build / build-zig-nightly (push) Failing after 3m36s
2024-10-17 10:54:01 -07:00
908c9d2d42
add diagnostics option to rest calls
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m30s
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Failing after 35s
aws-zig nightly build / build-zig-nightly (push) Failing after 39s
2024-08-27 13:37:36 -07:00
1fdff0bacd
include credenitals in logging control (tie to signing)
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m31s
2024-08-27 11:42:07 -07:00
1fe39007c5
add logging control useful for build scripts
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m32s
2024-08-27 11:30:23 -07:00
c5cb3dde29
Remove extra fields in request (AWS is sensitive to them) 2024-08-27 10:40:52 -07:00
c056dbb0ff
add diagnostics for failures
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m31s
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Successful in 1m30s
aws-zig nightly build / build-zig-nightly (push) Failing after 26s
2024-08-23 16:03:37 -07:00
9e8198cee4
also override iam region for signing requests
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m29s
2024-08-23 14:49:19 -07:00
43238a97eb
add iam global endpoint exception
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m29s
2024-08-23 14:40:56 -07:00
238952d127
add iam getRole test
This test triggers the scenario that a required response element exists, which
forces our check for "we do not expect data for this call" to be comptime.
It previously was accidentally runtime, which was solved by making
expected_body_field_len a comptime var.
2024-08-23 12:53:58 -07:00
e5b662873a
omit most automatically added headers
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m28s
2024-08-19 09:42:00 -07:00
a9f99c0205
add failing test for duplicate header values 2024-08-19 09:41:39 -07:00
3e89ec468a
utf16leToUtf8 -> utf16LeToUtf8 (capital L)
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Successful in 3m11s
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Successful in 3m13s
aws-zig nightly build / build-zig-nightly (push) Failing after 2m39s
2024-07-01 14:18:40 -07:00
f558b058e1
use explicit splitScalar
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Successful in 3m6s
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Successful in 3m7s
aws-zig nightly build / build-zig-nightly (push) Failing after 48s
2024-07-01 13:45:29 -07:00
a659c99350
re-enable windows test for 0.13/LLVM 18, update README
All checks were successful
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Successful in 3m5s
aws-zig nightly build / build-zig-nightly (push) Successful in 3m32s
2024-06-04 17:34:33 -07:00
7d80f42a3e
update to zig 0.13-dev.365 (zig nominated build 2024.05)
Some checks failed
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Failing after 1m57s
aws-zig nightly build / build-zig-nightly (push) Failing after 3m49s
2024-06-04 14:53:09 -07:00
c60c40f627
we are not mutating headers, so do not ask for mutable headers
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 3m3s
2024-05-15 13:47:33 -07:00
99a61c0bd2
update aws-zig to zig 0.12.0 (example will still fail)
Some checks failed
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 2m25s
2024-04-22 08:23:01 -07:00