-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force operation errors on multiple lines
Rather than keep operation errors on a single line if it fits, this PR forces errors to appear on multiple lines. Futher PRs will be added to make the same treatment to service and resource "resources" and "operations" properties (though that's more involved).
- Loading branch information
Showing
2 changed files
with
159 additions
and
74 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
22 changes: 22 additions & 0 deletions
22
...est/resources/software/amazon/smithy/syntax/formatter/errors-always-multiple-lines.smithy
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
$version: "2.0" | ||
|
||
namespace smithy.example | ||
|
||
operation DeleteFoo1 { | ||
errors: [ | ||
BadRequest | ||
] | ||
} | ||
|
||
operation DeleteFoo2 { | ||
errors: [ | ||
BadRequest | ||
WorseRequest | ||
] | ||
} | ||
|
||
@error("client") | ||
structure BadRequest {} | ||
|
||
@error("client") | ||
structure WorseRequest {} |