diff --git a/helper/schema/schema.go b/helper/schema/schema.go index 22fe196b77..5b398fd160 100644 --- a/helper/schema/schema.go +++ b/helper/schema/schema.go @@ -1735,15 +1735,7 @@ func (m schemaMap) validate( // The SDK has to allow the unknown value through initially, so that // Required fields set via an interpolated value are accepted. if !isWhollyKnown(raw) { - if schema.Deprecated != "" { - return append(diags, diag.Diagnostic{ - Severity: diag.Warning, - Summary: "Argument is deprecated", - Detail: schema.Deprecated, - AttributePath: path, - }) - } - return diags + return nil } err = validateConflictingAttributes(k, schema, c) diff --git a/helper/schema/schema_test.go b/helper/schema/schema_test.go index 0dec6bb27e..6bd9e46733 100644 --- a/helper/schema/schema_test.go +++ b/helper/schema/schema_test.go @@ -5792,10 +5792,7 @@ func TestSchemaMap_Validate(t *testing.T) { Config: map[string]interface{}{ "old_news": hcl2shim.UnknownVariableValue, }, - - Warnings: []string{ - "Warning: Argument is deprecated: please use 'new_news' instead", - }, + Err: false, }, "Required sub-resource field": {