Commit graph

100 commits

Author SHA1 Message Date
e41f98b389
adopt to changed signature for readFileAlloc in nightly
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Successful in 14m58s
aws-zig nightly build / build-zig-nightly (push) Failing after 28m7s
2025-09-03 14:08:27 -07:00
5ba3be2cc4
move off of deprecated APIs 2025-09-03 14:00:36 -07:00
5334cc3bfe
writer needs to be a constant to the pointer of the writer field 2025-08-22 13:30:09 -07:00
53ac60c875
don't forget to flush! 2025-08-22 12:52:57 -07:00
b865285b24
update codegen to 0.15.1 2025-08-22 11:23:26 -07:00
Simon Hartcher
3979d32a1d fix(json): need to write null when structure is null
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m53s
2025-06-05 13:47:37 +10:00
Simon Hartcher
6e775e20bb refactor: handle unsupported shape types explicitly 2025-06-05 11:10:19 +10:00
Simon Hartcher
d60ce20305 refactor: simplify switches using inline 2025-06-05 11:05:54 +10:00
Simon Hartcher
90d1091b66 chore: cleanup debug code 2025-06-05 10:56:28 +10:00
Simon Hartcher
4a6c84e0ae refactor: reorganise modules and methods 2025-06-05 10:54:10 +10:00
Simon Hartcher
9d1d8f26c9 chore: add comment to explain fix 2025-06-04 15:59:00 +10:00
Simon Hartcher
045150964b fix: handle structures with no members 2025-06-04 15:56:02 +10:00
Simon Hartcher
7aeb43a8c6 chore: code cleanup 2025-06-04 15:09:23 +10:00
Simon Hartcher
895918c1a9 chore: remove commented code 2025-06-04 15:01:31 +10:00
Simon Hartcher
af0d4d92b3 refactor: rewrite json stringification to write json directly 2025-06-04 14:58:16 +10:00
Simon Hartcher
c893a7cb31 chore: remove set (not used) 2025-06-04 13:03:12 +10:00
Simon Hartcher
2cd581f27f refactor: rename 2025-06-04 13:00:21 +10:00
Simon Hartcher
7233b87efc refactor: extract all json writing functions 2025-06-04 12:58:21 +10:00
Simon Hartcher
8a9d571c8e refactor: extract writeStructureMemberJson function 2025-06-04 12:43:11 +10:00
Simon Hartcher
e43b827576 chore: remove old stringify code 2025-06-04 12:35:32 +10:00
Simon Hartcher
60f1863557 chore: fix broken tests 2025-06-04 12:26:34 +10:00
Simon Hartcher
ee16fcf6cb chore: zlint auto fix 2025-06-04 10:59:57 +10:00
Simon Hartcher
489581ead2 feat: optional lists and maps to json 2025-06-04 10:50:38 +10:00
Simon Hartcher
9bc13d932a feat: add jsonStringify method to request objects 2025-06-03 10:37:10 +10:00
Simon Hartcher
9b673b0ff3 fix: map to json 2025-06-03 10:07:25 +10:00
Simon Hartcher
db0dde50e5 fix: singular kvp type 2025-06-03 10:07:25 +10:00
Simon Hartcher
a4d4da348f fix: checking if member is required 2025-06-03 10:07:25 +10:00
Simon Hartcher
d2ba0af842 feat: adds toJson function to request objects that converts to a json Value 2025-06-03 10:07:25 +10:00
Simon Hartcher
13a926af70 refactor(codegen): improve type generation 2025-06-03 10:07:25 +10:00
bc18fcca75
Merge branch 'handle-empty-filenames'
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m52s
2025-05-29 14:54:55 -07:00
6ed3a7e8d6
get exact count of number of model files, then use that in progress 2025-05-29 14:50:02 -07:00
Simon Hartcher
03f49b7416 fix: use file name for output when generated file name is empty 2025-05-22 14:30:52 +10:00
Simon Hartcher
78819b4290 feat: progress output for codegen 2025-05-22 14:03:08 +10:00
Simon Hartcher
b01771df66 fix: json stringifying of generated map types
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Has been cancelled
2025-05-14 16:41:42 +10:00
Simon Hartcher
a056d763ca chore: add comments 2025-05-14 15:31:04 +10:00
Simon Hartcher
934323acf1 refactor: generate types for maps
TODO: handle json stringify for generated map types
2025-05-14 15:29:21 +10:00
Simon Hartcher
522ab72296 feat: run zig fmt on generated models 2025-05-08 15:57:05 +10:00
Simon Hartcher
87fc872f7d chore: replace custom snake case with case package 2025-05-08 15:21:11 +10:00
Simon Hartcher
3e06eeca66 refactor(codegen): create concrete types for request and response structures 2025-05-08 15:17:58 +10:00
f0b66d3cca
update models to 2025-05-05 (requires additional reserved word guard for "inline")
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m12s
2025-05-07 12:26:41 -07:00
c6a1bb2418
upgrade smithy to 4187d899 (enables optional service version) 2025-05-07 12:25:21 -07:00
Simon Hartcher
8007a910dd refactor: create shared lib for json 2025-04-23 12:15:04 +10:00
Simon Hartcher
631d014215 chore: remove old date code 2025-04-23 11:53:28 +10:00
Simon Hartcher
3fea7d9f0e refactor: handle empty response bodies and multiple types of timestamps 2025-04-22 16:06:50 +10: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
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
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
f5663fd84d
allow serializeMap to work with optionals
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m28s
aws-zig mach nominated build / build-zig-nominated-mach-latest (push) Successful in 1m28s
aws-zig nightly build / build-zig-nightly (push) Failing after 33s
2024-08-26 16:01:21 -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