-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Don't assume that all service bindings existed before (#2405)
- Loading branch information
1 parent
a7c3fd5
commit 866dae7
Showing
4 changed files
with
73 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
21 changes: 21 additions & 0 deletions
21
.../test/resources/software/amazon/smithy/aws/traits/diffs/no-old-sigv4-new-service.a.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,21 @@ | ||
$version: "2.0" | ||
|
||
metadata suppressions = [ | ||
{ | ||
id: "ModifiedTrait.Update.smithy.api#auth" | ||
namespace: "ns.foo" | ||
} | ||
] | ||
|
||
namespace ns.foo | ||
|
||
@auth([]) | ||
@httpBearerAuth | ||
service Service { | ||
operations: [ | ||
Operation | ||
] | ||
} | ||
|
||
@auth([]) | ||
operation Operation {} |
30 changes: 30 additions & 0 deletions
30
.../test/resources/software/amazon/smithy/aws/traits/diffs/no-old-sigv4-new-service.b.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,30 @@ | ||
$version: "2.0" | ||
|
||
metadata suppressions = [ | ||
{ | ||
id: "ModifiedTrait.Update.smithy.api#auth" | ||
namespace: "ns.foo" | ||
} | ||
] | ||
|
||
namespace ns.foo | ||
|
||
@auth([httpBearerAuth]) | ||
@httpBearerAuth | ||
service Service { | ||
operations: [ | ||
Operation | ||
] | ||
} | ||
|
||
@auth([httpBearerAuth]) | ||
@httpBearerAuth | ||
service NewService { | ||
operations: [ | ||
Operation | ||
] | ||
} | ||
|
||
|
||
@auth([httpBearerAuth]) | ||
operation Operation {} |
1 change: 1 addition & 0 deletions
1
...rc/test/resources/software/amazon/smithy/aws/traits/diffs/no-old-sigv4-new-service.events
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 @@ | ||
[NOTE] ns.foo#NewService: Added service `ns.foo#NewService` | AddedShape |