forked from smithy-lang/smithy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change recommended operation IDL syntax
The old operation syntax is now deprecated in favor of a syntax that's more consistent with the rest of the IDL. The following operation, operation Foo(Input) -> Output errors[X, Y, Z] Is now defined as: operation Foo { input: Input, output: Output, errors: [X, Y, Z] } Why? - This new syntax is more consistent with other shapes like resources, operations, structures, etc. This consistency makes it easier to implement parsers, formatters, etc. - Virtually all *actual* models define operations with errors. When an operation uses long input names, output, *and* defines errors, they either are one really long line or span multiple lines. How an operation definition was broken across multiple lines is something that has been approached with great inconsistency within AWS and Amazon. Using a syntax format that removes all ambiguity will help drive consistency in models, thereby making them easier to read. The old syntax is still supported, but no longer documented. A validation event is emitted when it is encountered. Support for the old syntax will be removed in Smithy 1.0.
- Loading branch information
Showing
44 changed files
with
502 additions
and
193 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
Oops, something went wrong.