Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(middleware-flexible-checksums): add RequestChecksumCalculation and ResponseChecksumValidation #6465

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented Sep 12, 2024

Issue

Internal JS-5396

Description

Adds constants RequestChecksumCalculation and ResponseChecksumValidation.
They'll be set in clients in the following PR.

Testing

N/A


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr trivikr marked this pull request as ready for review September 12, 2024 17:05
@trivikr trivikr requested a review from a team as a code owner September 12, 2024 17:05
}

return value;
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like this could/should be reused for other enum specifications like AccountIdEndpointMode

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Their validator does not check for casing, but flexible checksums one needs to.

export function validateAccountIdEndpointMode(value: any): value is AccountIdEndpointMode {
return ACCOUNT_ID_ENDPOINT_MODE_VALUES.includes(value);
}

@trivikr trivikr merged commit ba923e6 into aws:main Sep 12, 2024
4 checks passed
@trivikr trivikr deleted the flexcheck-new-config branch September 12, 2024 17:54
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants