Commit 4e4c1a0
chore(clients): strictly parse booleans (#2514)
* chore: add helper method for parsing booleans
This adds a helper for parsing booleans from strings. Previously a
simple `=== "true"` check was being performed, but this implies that
anything that isn't that particular string is false.
* chore: update generated code
* chore: strictly parse xml booleans
* chore: update generated code
* chore: move parseBoolean to parse-utils
* chore: prefer arrow functions
Co-authored-by: Trivikram Kamat <[email protected]>
* chore: update type signature of parseBoolean to accept all strings
Co-authored-by: Trivikram Kamat <[email protected]>
Co-authored-by: Trivikram Kamat <[email protected]>1 parent 9144509 commit 4e4c1a0
File tree
30 files changed
+702
-601
lines changed- clients
- client-auto-scaling/protocols
- client-cloudformation/protocols
- client-cloudfront/protocols
- client-cloudsearch/protocols
- client-cloudwatch/protocols
- client-docdb/protocols
- client-ec2/protocols
- client-elastic-beanstalk/protocols
- client-elastic-load-balancing-v2/protocols
- client-elastic-load-balancing/protocols
- client-elasticache/protocols
- client-iam/protocols
- client-neptune/protocols
- client-rds/protocols
- client-redshift/protocols
- client-route-53/protocols
- client-s3-control/protocols
- client-s3/protocols
- client-ses/protocols
- client-sns/protocols
- client-sqs/protocols
- client-transcribe-streaming/protocols
- codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen
- packages/smithy-client/src
- protocol_tests
- aws-ec2/protocols
- aws-query/protocols
- aws-restjson/protocols
- aws-restxml/protocols
30 files changed
+702
-601
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
| |||
7590 | 7591 | | |
7591 | 7592 | | |
7592 | 7593 | | |
7593 | | - | |
| 7594 | + | |
7594 | 7595 | | |
7595 | 7596 | | |
7596 | 7597 | | |
| |||
7599 | 7600 | | |
7600 | 7601 | | |
7601 | 7602 | | |
7602 | | - | |
| 7603 | + | |
7603 | 7604 | | |
7604 | 7605 | | |
7605 | 7606 | | |
| |||
7685 | 7686 | | |
7686 | 7687 | | |
7687 | 7688 | | |
7688 | | - | |
| 7689 | + | |
7689 | 7690 | | |
7690 | 7691 | | |
7691 | 7692 | | |
| |||
7810 | 7811 | | |
7811 | 7812 | | |
7812 | 7813 | | |
7813 | | - | |
| 7814 | + | |
7814 | 7815 | | |
7815 | 7816 | | |
7816 | 7817 | | |
| |||
8255 | 8256 | | |
8256 | 8257 | | |
8257 | 8258 | | |
8258 | | - | |
| 8259 | + | |
8259 | 8260 | | |
8260 | 8261 | | |
8261 | 8262 | | |
8262 | 8263 | | |
8263 | 8264 | | |
8264 | | - | |
| 8265 | + | |
8265 | 8266 | | |
8266 | 8267 | | |
8267 | 8268 | | |
| |||
8422 | 8423 | | |
8423 | 8424 | | |
8424 | 8425 | | |
8425 | | - | |
| 8426 | + | |
8426 | 8427 | | |
8427 | 8428 | | |
8428 | 8429 | | |
| |||
8453 | 8454 | | |
8454 | 8455 | | |
8455 | 8456 | | |
8456 | | - | |
| 8457 | + | |
8457 | 8458 | | |
8458 | 8459 | | |
8459 | 8460 | | |
| |||
8725 | 8726 | | |
8726 | 8727 | | |
8727 | 8728 | | |
8728 | | - | |
| 8729 | + | |
8729 | 8730 | | |
8730 | 8731 | | |
8731 | | - | |
| 8732 | + | |
8732 | 8733 | | |
8733 | 8734 | | |
8734 | 8735 | | |
| |||
9519 | 9520 | | |
9520 | 9521 | | |
9521 | 9522 | | |
9522 | | - | |
| 9523 | + | |
9523 | 9524 | | |
9524 | 9525 | | |
9525 | 9526 | | |
| |||
9740 | 9741 | | |
9741 | 9742 | | |
9742 | 9743 | | |
9743 | | - | |
| 9744 | + | |
9744 | 9745 | | |
9745 | 9746 | | |
9746 | 9747 | | |
| |||
9810 | 9811 | | |
9811 | 9812 | | |
9812 | 9813 | | |
9813 | | - | |
| 9814 | + | |
9814 | 9815 | | |
9815 | 9816 | | |
9816 | 9817 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| 312 | + | |
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
| |||
6449 | 6450 | | |
6450 | 6451 | | |
6451 | 6452 | | |
6452 | | - | |
| 6453 | + | |
6453 | 6454 | | |
6454 | 6455 | | |
6455 | | - | |
| 6456 | + | |
6456 | 6457 | | |
6457 | 6458 | | |
6458 | 6459 | | |
| |||
6570 | 6571 | | |
6571 | 6572 | | |
6572 | 6573 | | |
6573 | | - | |
| 6574 | + | |
6574 | 6575 | | |
6575 | 6576 | | |
6576 | 6577 | | |
| |||
6825 | 6826 | | |
6826 | 6827 | | |
6827 | 6828 | | |
6828 | | - | |
| 6829 | + | |
6829 | 6830 | | |
6830 | 6831 | | |
6831 | 6832 | | |
| |||
7036 | 7037 | | |
7037 | 7038 | | |
7038 | 7039 | | |
7039 | | - | |
| 7040 | + | |
7040 | 7041 | | |
7041 | 7042 | | |
7042 | 7043 | | |
| |||
7785 | 7786 | | |
7786 | 7787 | | |
7787 | 7788 | | |
7788 | | - | |
| 7789 | + | |
7789 | 7790 | | |
7790 | 7791 | | |
7791 | 7792 | | |
| |||
7828 | 7829 | | |
7829 | 7830 | | |
7830 | 7831 | | |
7831 | | - | |
| 7832 | + | |
7832 | 7833 | | |
7833 | 7834 | | |
7834 | 7835 | | |
| |||
8271 | 8272 | | |
8272 | 8273 | | |
8273 | 8274 | | |
8274 | | - | |
| 8275 | + | |
8275 | 8276 | | |
8276 | 8277 | | |
8277 | 8278 | | |
| |||
8310 | 8311 | | |
8311 | 8312 | | |
8312 | 8313 | | |
8313 | | - | |
| 8314 | + | |
8314 | 8315 | | |
8315 | 8316 | | |
8316 | 8317 | | |
| |||
9040 | 9041 | | |
9041 | 9042 | | |
9042 | 9043 | | |
9043 | | - | |
| 9044 | + | |
9044 | 9045 | | |
9045 | 9046 | | |
9046 | 9047 | | |
| |||
9373 | 9374 | | |
9374 | 9375 | | |
9375 | 9376 | | |
9376 | | - | |
| 9377 | + | |
9377 | 9378 | | |
9378 | 9379 | | |
9379 | 9380 | | |
| |||
9498 | 9499 | | |
9499 | 9500 | | |
9500 | 9501 | | |
9501 | | - | |
| 9502 | + | |
9502 | 9503 | | |
9503 | 9504 | | |
9504 | 9505 | | |
| |||
0 commit comments