Skip to content
Unverified Commit ff587f4c authored by Matteo Bigoi's avatar Matteo Bigoi Committed by GitHub
Browse files

Add decorator to allow to make all operations fallible (#1190)



Force all operations in the model to be fallible.

When this decorator is applied, operations that do not have a Smithy error attatched, will return Result<OperationOutput, InternalServerError>.

To enable this decorator, create a file called META-INF/service/software.amazon.smithy.rust.codegen.smithy.customize.RustCodegenDecorator containing codegen-server/src/main/resources/META-INF/services/software.amazon.smithy.rust.codegen.smithy.customize.RustCodegenDecorator.

Closes: #1150
Signed-off-by: default avatarBigo <1781140+crisidev@users.noreply.github.com>
parent 116f81bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment