bc18fcca75
Merge branch 'handle-empty-filenames'
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
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")
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
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
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)
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
99a61c0bd2
update aws-zig to zig 0.12.0 (example will still fail)
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 2m25s
2024-04-22 08:23:01 -07:00
d442671275
upgrade zig build gen
build command to zig 0.12
...
This removes the copied Package.zig as we can now use the actual package
manager and look at our available dependencies in build.zig. This may
break again later as I believe lazy dependencies are planned, which will
have us search for a solution to tell the build system we're expecting
this dependency.
2024-03-30 15:26:24 -07:00
79d73cf09f
support for enum, document, and...dear lord...unit
2024-02-29 13:53:32 -08:00
3a027b6cd9
codegen support for more reserved words
2024-02-29 13:49:57 -08:00
69d8151ac8
make sigv4_name and arn_namespace optional
2024-02-29 13:49:21 -08:00
2db4188dbc
more logging to help codegen debug
2024-02-29 13:46:58 -08:00
2c9a80e363
update snake case to handle space followed by single character at end of string
2024-02-29 13:43:48 -08:00
melhindi
7a5fa0bb2e
Replace var with const where applicable
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 7m37s
2024-01-18 13:43:45 +01:00
e8bfd0af6d
codegen: clean up generated file names
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 8m22s
2023-09-06 12:11:12 -07:00
fb36dc83d5
skip processing if all hashes match
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 7m8s
2023-08-25 17:20:51 -07:00
a58a2cba41
adjustments in prep for hash optimization
2023-08-25 15:34:52 -07:00
26daedbd72
rename model readme as project does not have its own readme
2023-08-25 14:52:00 -07:00
6a109f2a5a
update model readme
2023-08-25 14:51:33 -07:00
2f36f82363
factor out hashing so we can use it in codegen
2023-08-25 14:43:40 -07:00
db4037111f
use copied package manager to fetch models
...
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 7m18s
With this commit, I have copied a significant amount of package
manager code from zig 0.11 that was not included in the standard
library. This code is in Package.zig, and was augmented/adjusted
to handle the use case of arbitrary data files rather than the
specialized zig project use case of the package manager. It
arguably should be in a seperate repo, but we can move this later
if needed.
2023-08-25 11:31:18 -07:00
bad00517a3
create path if it does not exist
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 2m34s
2023-08-15 07:38:57 -07:00
c3da8c067f
only close if opened
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 1m33s
2023-08-15 07:26:14 -07:00
4dacca2d46
introduce verbosity
2023-08-14 22:56:19 -07:00
3b249d62b9
better codegen but without caching
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 2m4s
2023-08-14 22:38:37 -07:00
6b97fed499
codegen: revert build to mostly stock, update to 0.11
2023-08-14 16:24:51 -07:00
5ee53a493d
some codegen changes needed/investigation into http_query (see note)
...
This fixes main compile issues. Problems that remain:
* json is borked for objects with key/value keys that need to be coerced
* currently all request structures need an http_query declaration, and this may be a hard requirement
* need to revisit all the places where we are reading http response bodies
* there are 35 compile errors that do not have reference traces and will take a while to track down
2023-08-05 12:41:04 -07:00
c2dc55c8ff
move smithy outside repo (what about this test.json)
2023-08-04 16:37:46 -07:00
cfdf4a3141
these are old changes, but I believe part of 0.11 from a while back
2023-08-04 10:06:54 -07:00
803581f647
add http_payload type declaration based on smithy model
2022-05-28 18:00:38 -07:00
611849bde6
add codegen exception for cloudfront/adjust iot sitewise
2022-05-28 17:59:22 -07:00
f374df3fa1
update generated models for xml mappings
2022-02-10 15:13:44 -08:00
1c41737202
upgrade to zig 0.9.0
continuous-integration/drone/push Build is passing
2022-01-03 08:06:14 -08:00
86b8815051
resolve most recursive type warnings in generator (ssm still has 2)
continuous-integration/drone/push Build is passing
2021-09-06 15:43:14 -07:00
c6b3f8d6e1
adjust whitespace on generated code
2021-09-05 14:32:20 -07:00