Skip to content

chore: remove mapParams from serialize/deserialize #1163

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

Merged
merged 2 commits into from
May 8, 2020

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented May 8, 2020

Issue #, if available:
Similar to #1153

Description of changes:
remove mapParams from serialize/deserialize

  • Before
    const mapParams: any = {};
    Object.keys(input).forEach(key => {
      mapParams[key] = serializeAws_restJson1_1Criterion(input[key], context);
    });
    return mapParams;
  • After
    return Object.keys(input).reduce((acc: any, key: string) => {
      acc[key] = serializeAws_restJson1_1Criterion(input[key], context);
      return acc;
    }, {});

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

@aws-sdk-js-automation
Copy link

AWS CodeBuild CI Report

  • CodeBuild project: sdk-staging-test
  • Commit ID: f82fcdb
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@trivikr trivikr merged commit 6a447a0 into aws:master May 8, 2020
@trivikr trivikr deleted the remove-mapParams branch May 8, 2020 22:17
@lock
Copy link

lock bot commented May 20, 2020

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.

@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2020
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.

3 participants