mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(dynamodb): reject a request member of the wrong JSON type (#4636)
* chore(dynamodb): vendor the input shapes of botocore's DynamoDB model tools/aws/regen_dynamodb_shapes.py keeps each operation's input shape and the type of every shape it reaches, from the pinned botocore release. make aws-data-sync regenerates it and make aws-data-check keeps it in sync. * fix(dynamodb): reject a request member of the wrong JSON type DynamoDB answers a member of the wrong JSON type with a SerializationException before it runs the operation, such as "NUMBER_VALUE cannot be converted to String" for a number BillingMode or IndexName. The message names the JSON token and the Java type, or says "Unexpected field type", "Unexpected value type in payload", "Start of structure or map found where not expected" or "UnknownError" by where the value sits. The first bad member in body order is reported. A JSON null counts as absent and an unknown member is ignored. Floci now checks every DynamoDB JSON request against the vendored input shapes. A number in an ExclusiveStartKey S value is one of these errors on AWS, so that test now expects the SerializationException. * fix(dynamodb): keep provenance out of the shapes freshness check The shapes file now carries its provenance in a _source block, like the other vendored AWS data, and --check compares it without that block. A run against --botocore-data or a local checkout no longer reports the file as stale when only the botocore label differs.
This commit is contained in:
1 parent
33617e340d
commit
1465251e0c
10 files changed
+2207
-5
No files matched your search
@@ -6,8 +6,8 @@ name: Partition Literals
|
||||
# partition regexes in src/main/java against the checked-in per-file baseline: a
|
||||
# literal in a new file fails, growth in an existing file fails, and a drop fails until
|
||||
# the baseline is regenerated so the remaining count stays exact. The second job checks
|
||||
# that the vendored partition data (src/main/resources/aws/partitions.json) still matches
|
||||
# what tools/aws/regen_partitions.py produces from the pinned botocore release. Python-only,
|
||||
# that the vendored AWS data (src/main/resources/aws/*.json) still matches what tools/aws/
|
||||
# produces from the pinned botocore release. Python-only,
|
||||
# so both are fast and independent of the Java build job.
|
||||
|
||||
on:
|
||||
|
||||
Reference in new issue
Block a user