-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require non-empty aws.auth#sigv4 name
- Loading branch information
Showing
4 changed files
with
15 additions
and
3 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
1 change: 1 addition & 0 deletions
1
.../test/resources/software/amazon/smithy/aws/traits/errorfiles/auth/sigv4-empty-name.errors
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 @@ | ||
[ERROR] smithy.example#InvalidService: Error validating trait `aws.auth#sigv4`.name: String value provided for `aws.auth#sigv4$name` must be >= 1 characters, but the provided value is only 0 characters. | TraitValue |
8 changes: 8 additions & 0 deletions
8
.../test/resources/software/amazon/smithy/aws/traits/errorfiles/auth/sigv4-empty-name.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,8 @@ | ||
namespace smithy.example | ||
|
||
use aws.auth#sigv4 | ||
|
||
@sigv4(name: "") | ||
service InvalidService { | ||
version: "2020-07-02" | ||
} |