Part of #213.
Problem
check-json fails to decode a tracked JSON file because of a duplicate key:
plugins/deploy-on-aws/scripts/lib/aws4-shapes.json: Failed to json decode (Duplicate key: iot)
Duplicate keys are valid to most lenient parsers (last one wins) but are rejected by the strict check-json hook and are a latent correctness bug — whichever iot block is shadowed is silently ignored.
Reproduce
mise exec -- pre-commit run check-json --all-files
Proposed fix
Inspect the two iot entries in aws4-shapes.json, merge/deduplicate them (keeping the intended definition), and confirm the file still decodes. If the file is generated, fix the generator so it does not emit duplicate keys.
Filed with assistance from Claude Code while implementing #211.
Part of #213.
Problem
check-jsonfails to decode a tracked JSON file because of a duplicate key:Duplicate keys are valid to most lenient parsers (last one wins) but are rejected by the strict
check-jsonhook and are a latent correctness bug — whicheveriotblock is shadowed is silently ignored.Reproduce
mise exec -- pre-commit run check-json --all-filesProposed fix
Inspect the two
iotentries inaws4-shapes.json, merge/deduplicate them (keeping the intended definition), and confirm the file still decodes. If the file is generated, fix the generator so it does not emit duplicate keys.Filed with assistance from Claude Code while implementing #211.