Commit graph

578 commits

Author SHA1 Message Date
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
36a894d776 build: disable zlint pre-commit hook for now 2025-06-04 12:35:58 +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
7908c13bb4 build: add mise + pre-commit hooks 2025-06-04 10:59:08 +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
d6be1d4c5c
Merge cli progress bar for codegen (PR #22)
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Has been cancelled
2025-05-29 14:50:20 -07:00
6ed3a7e8d6
get exact count of number of model files, then use that in progress 2025-05-29 14:50:02 -07:00
ebe170414e
upgrade setup-zig to latest (handles difference in tarball name)
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 6m7s
2025-05-26 10:29:22 -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
c81163ed35
Merge branch 'refactor-iso-date-parsing'
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 6m0s
2025-05-18 10:25:35 -07:00
Simon Hartcher
e98c792244 chore: update zeit to master 2025-05-15 13:32:35 +10:00
Simon Hartcher
cab0d70c33 chore: removed now irrelevant comment 2025-05-15 12:02:35 +10:00
Simon Hartcher
307e4b985f refactor: remove old code 2025-05-15 11:57:20 +10:00
Simon Hartcher
c828dfdcb0 chore: update zeit with pre-release fix for iso 8601 basic format 2025-05-15 11:55:52 +10:00
Simon Hartcher
df09ed2bdd refactor: parse iso dates using zeit 2025-05-15 11:48:41 +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
464218b02c
update smithy to reduce noise in codegen output
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m19s
2025-05-07 12:35:48 -07: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
57a7cf3190
centralize module configuration in build.zig
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m9s
2025-04-30 07:39:42 -07:00
Simon Hartcher
a91b2e8ddb refactor(detectArrayStyle): remove void value from hashmap generation 2025-04-30 09:56:41 +10:00
Simon Hartcher
622a815628 refactor(detectArrayStyle): avoid nested loop by using a hash map 2025-04-30 09:53:58 +10:00