-
- Downloads
Implement Jmespath shape traversal codegen for waiters (#3526)
This PR adds a `RustJmespathShapeTraversalGenerator` class that will generate code to traverse Smithy generated shapes based on a Jmespath expression. This is a necessary prerequisite for implementing Smithy waiters support. The generator only implements a subset of the full Jmespath spec. This subset was determined by examining all the waiter expressions in the existing SDK models. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
Showing
- codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/waiters/RustJmespathShapeTraversalGenerator.kt 777 additions, 0 deletions...generators/waiters/RustJmespathShapeTraversalGenerator.kt
- codegen-client/src/test/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/waiters/RustJmespathShapeTraversalGeneratorTest.kt 591 additions, 0 deletions...rators/waiters/RustJmespathShapeTraversalGeneratorTest.kt
- codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/rustlang/RustType.kt 1 addition, 1 deletion...ware/amazon/smithy/rust/codegen/core/rustlang/RustType.kt
- codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/rustlang/RustWriter.kt 12 additions, 6 deletions...re/amazon/smithy/rust/codegen/core/rustlang/RustWriter.kt
- codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/rustlang/Writable.kt 4 additions, 5 deletions...ware/amazon/smithy/rust/codegen/core/rustlang/Writable.kt
Loading
Please register or sign in to comment