-
- Downloads
Refactor the `as_validation_exception_field` function definition in...
Refactor the `as_validation_exception_field` function definition in `ServerBuilderConstraintViolations`. (#3719) This PR refactors the code to limit the visibility of `crate::model::ValidationExceptionField` to only those decorators and associated classes that are invoked when `smithy.framework#ValidationException` is being used. More information is in [this issue](https://github.com/smithy-lang/smithy-rs/issues/3718). Closes: [3178](https://github.com/smithy-lang/smithy-rs/issues/3718 ) --------- Co-authored-by:Fahad Zubair <fahadzub@amazon.com> Co-authored-by:
david-perez <d@vidp.dev>
Showing
- codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/customizations/CustomValidationExceptionWithReasonDecorator.kt 20 additions, 15 deletions...mizations/CustomValidationExceptionWithReasonDecorator.kt
- codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/customizations/SmithyValidationExceptionDecorator.kt 19 additions, 14 deletions...ithy/customizations/SmithyValidationExceptionDecorator.kt
- codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderConstraintViolations.kt 2 additions, 4 deletions...er/smithy/generators/ServerBuilderConstraintViolations.kt
- codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ValidationExceptionConversionGenerator.kt 1 addition, 1 deletion...ithy/generators/ValidationExceptionConversionGenerator.kt
Loading
Please register or sign in to comment