Skip to content

Commit e4dd4bb

Browse files
committed
Remove restriction on Smithy API namespace to use trait-codegen
1 parent 784bac3 commit e4dd4bb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

smithy-trait-codegen/src/main/java/software/amazon/smithy/traitcodegen/TraitCodegenSettings.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
*/
3030
@SmithyUnstableApi
3131
public final class TraitCodegenSettings {
32-
private static final String SMITHY_API_NAMESPACE = "smithy";
3332

3433
private final String packageName;
3534
private final String smithyNamespace;
@@ -55,9 +54,6 @@ public final class TraitCodegenSettings {
5554
) {
5655
this.packageName = Objects.requireNonNull(packageName);
5756
this.smithyNamespace = Objects.requireNonNull(smithyNamespace);
58-
if (smithyNamespace.equals(SMITHY_API_NAMESPACE) || smithyNamespace.startsWith(SMITHY_API_NAMESPACE + ".")) {
59-
throw new IllegalArgumentException("The `smithy` namespace and its sub-namespaces are reserved.");
60-
}
6157
this.headerLines = Objects.requireNonNull(headerLines);
6258
this.excludeTags = Objects.requireNonNull(excludeTags);
6359
}

0 commit comments

Comments
 (0)