diff --git a/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/SdkSettings.kt b/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/SdkSettings.kt index e523c960ac3..ec5114be6b3 100644 --- a/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/SdkSettings.kt +++ b/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/SdkSettings.kt @@ -45,7 +45,7 @@ class SdkSettings private constructor(private val awsSdk: ObjectNode?) { /** Whether to generate a README */ val generateReadme: Boolean - get() = awsSdkBuild + get() = awsSdkBuild && !(awsSdk?.getBooleanMember("suppressReadme")?.orNull()?.value ?: false) val requireEndpointResolver: Boolean get() = awsSdkBuild diff --git a/aws/sdk-codegen/src/test/kotlin/software/amazon/smithy/rustsdk/TestUtil.kt b/aws/sdk-codegen/src/test/kotlin/software/amazon/smithy/rustsdk/TestUtil.kt index e6b61d6397e..bf1dc5aece6 100644 --- a/aws/sdk-codegen/src/test/kotlin/software/amazon/smithy/rustsdk/TestUtil.kt +++ b/aws/sdk-codegen/src/test/kotlin/software/amazon/smithy/rustsdk/TestUtil.kt @@ -56,9 +56,9 @@ fun awsIntegrationTestParams() = IntegrationTestParams( "awsSdk", ObjectNode.builder() .withMember("awsSdkBuild", true) + .withMember("suppressReadme", true) .withMember("integrationTestPath", "../sdk/integration-tests") .withMember("partitionsConfigPath", "../sdk/aws-models/sdk-endpoints.json") - .withMember("awsConfigVersion", "1") .build(), ).build(), )