diff --git a/src/System.Management.Automation/engine/Attributes.cs b/src/System.Management.Automation/engine/Attributes.cs
index cbe4a2b0dd7..347eb4c7cd5 100644
--- a/src/System.Management.Automation/engine/Attributes.cs
+++ b/src/System.Management.Automation/engine/Attributes.cs
@@ -1731,13 +1731,16 @@ public ValidateSetAttribute(Type valuesGeneratorType)
///
/// Allows dynamically generate set of values for
///
+#nullable enable
public interface IValidateSetValuesGenerator
{
///
/// Gets valid values.
///
+ /// A non-null array of non-null strings.
string[] GetValidValues();
}
+#nullable restore
///
/// Validates that each parameter argument is Trusted data.