Skip to content

Commit 46d6f58

Browse files
committed
chore: allow unknown traits when generating sdk
Updates Smithy Gradle Plugin config to allow unkown traits, stopping builds from failing if there are traits in models which haven't been added as a dependency in the code generator. Usually new traits are added to existing packages, but if/when a trait is added in a new package, we will have to update the dependencies of the code generator, even if the code generator isn't actually using the trait yet.
1 parent 5696dd1 commit 46d6f58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codegen/sdk-codegen/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ configure<software.amazon.smithy.gradle.SmithyExtension> {
6363
smithyBuildConfigs = files("smithy-build-" + clientNameProp + ".json")
6464
outputDirectory = file("build-single/" + clientNameProp)
6565
}
66+
allowUnknownTraits = true
6667
}
6768

6869
// Generates a smithy-build.json file by creating a new projection for every

0 commit comments

Comments
 (0)