You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In @aws-sdk/client-cloudfront, the type of the field HttpVersion for a CloudFront Distribution is defined as the following union:
http1.1|http2
In reality, the AWS API returns the following data:
HTTP1.1|HTTP2
This issue is for tracking the submission of this minor fix to the appropriate repository for the AWS SDK.
No bug exists in the cfs code in this repository, since we use our own manually-defined zod union type for validating this data. This is actually how this bug was caught, since we define our own types and rely on parsing data with validation rather than just relying on the TypeScript declarations provided by the AWS SDK.
The text was updated successfully, but these errors were encountered:
In
@aws-sdk/client-cloudfront
, the type of the fieldHttpVersion
for a CloudFront Distribution is defined as the following union:In reality, the AWS API returns the following data:
This issue is for tracking the submission of this minor fix to the appropriate repository for the AWS SDK.
No bug exists in the
cfs
code in this repository, since we use our own manually-definedzod
union type for validating this data. This is actually how this bug was caught, since we define our own types and rely on parsing data with validation rather than just relying on the TypeScript declarations provided by the AWS SDK.The text was updated successfully, but these errors were encountered: