-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic support of @deprecated trait in Smithy model (#1570)
* Add helper for creating deprecated attribute * `Attribute.Custom.deprecated` is the main logic for building up `#[deprecated]` attribute * `RustWriter.deprecatedShape` is the counterpart of `documentShape`, but we do not going to generalize it as what `documentShape` does. Deprecated is only for Rust code and probably won't be used in other output language. Signed-off-by: Weihang Lo <[email protected]> * Test `@deprecated` trait for RustWriter * Support `@deprecated` trait for StructureGenerator * Support `@deprecated` trait for UnionGenerator Signed-off-by: Weihang Lo <[email protected]> * Support `@deprecated` trait for EnumGenerator * Support `@deprecated` trait for TopLevelErrorGenerator * Support `@deprecated` trait for CombinedErrorGenerator * Support `@deprecated` trait for ServerCombinedErrorGenerator * Support `@deprecated` trait for FluentClient * Support `@deprecated` trait for BuilderGenerator * Cleanup leftover in test * Use `dq()` helper method instead of escaping by hands Signed-off-by: Weihang Lo <[email protected]> * Leverage Kotlin null safety well Signed-off-by: Weihang Lo <[email protected]> * Allow `deprecated` rustc lint rule Signed-off-by: Weihang Lo <[email protected]> * Allow deprecated in unit tests Signed-off-by: Weihang Lo <[email protected]> * Leverage kotlin null safety check again Signed-off-by: Weihang Lo <[email protected]> * changelog: Support @deprecated trait Signed-off-by: Weihang Lo <[email protected]> Co-authored-by: Matteo Bigoi <[email protected]>
- Loading branch information
Showing
21 changed files
with
255 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.