StaticValue constructor not returning nullable DateTime #3582
Labels
bug
This issue is a bug.
module/sdk-generated
p2
This is a standard priority issue
s
Effort estimation: small
v4
Describe the bug
aws-sdk-net/sdk/src/Services/QuickSight/Generated/Model/TimeRangeFilterValue.cs
Line 90 in 37492aa
AWSSDK.QuickSight
TimeRangeFilterValue.StaticValue
When retrieving the object via the SDK, the constructor is not returning a nullable DateTime. It gets initialized as new DateTime() and if you have set the RollingDate property also, then a validation error is returned when using the object in CreateDashboardAsync()
_{"4 validation errors detected: Value 'TimeRangeFilterValue(staticValue=Mon Jan 03 00:00:00 UTC 1, rollingDate=RollingDateConfiguration(dataSetIdentifier=null, expression=*** REDACTED ***), parameter=null)' at 'definition.filterGroups.11.member.filters.1.member.timeRangeFilter.rangeMaximumValue' failed to satisfy constraint: Only 1 member of [staticValue, rollingDate, parameter] should be provided for structure TimeRangeFilterValue; Value 'TimeRangeFilterValue(staticValue=Mon Jan 03 00:00:00 UTC 1, rollingDate=RollingDateConfiguration(dataSetIdentifier=null, expression=*** REDACTED ***), parameter=null)' at_
Regression Issue
Expected Behavior
A Nullable DateTime value is allowed
Current Behavior
Initialised as a new DateTime
Reproduction Steps
Create the Dashboard via the CLI or UI with a rollingDateTime filter configured
Retrieve the Dashboard via the SDK
DescribeDashboardDefinitionAsync
Publish the Dasboard (change its name to pass naming validation) using
CreateDashboardAsync
Catch Validation Error Exception
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.QuickSight 3.7.411.5
Targeted .NET Platform
.NET 8
Operating System and version
Windows
The text was updated successfully, but these errors were encountered: