Commit b3ba156
authored
Fix JMESPath integer literal handling (#4500)
## Description
Smithy 1.66.0 changed JMESPath parsing to return `Long` for integer
literals instead of `Double`. This broke our codegen which checked `is
Double`.
## Changes
- Use `expr.type` instead of `expr.value` for type matching
- Use `RuntimeType.NUMBER` instead of `is Double`
- Use `expr.expectNumberValue()` to get the value
## Testing
- Verified tests pass with Smithy 1.63.0 (current)
- Verified tests pass with Smithy 1.66.0 (the breaking version)1 parent 9d6b6a1 commit b3ba156
File tree
2 files changed
+24
-10
lines changed- .changelog
- codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/waiters
2 files changed
+24
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
568 | 569 | | |
569 | 570 | | |
570 | 571 | | |
571 | | - | |
572 | | - | |
573 | | - | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
574 | 575 | | |
575 | 576 | | |
576 | 577 | | |
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
580 | | - | |
| 581 | + | |
581 | 582 | | |
582 | 583 | | |
583 | 584 | | |
584 | 585 | | |
585 | 586 | | |
586 | 587 | | |
587 | | - | |
| 588 | + | |
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
| |||
598 | 599 | | |
599 | 600 | | |
600 | 601 | | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
605 | 606 | | |
606 | 607 | | |
607 | | - | |
| 608 | + | |
608 | 609 | | |
609 | 610 | | |
610 | 611 | | |
| |||
0 commit comments