Skip to content

fix(apigatewayv2): api mapping key with two hyphens is disallowed#16204

Merged
mergify[bot] merged 2 commits intoaws:masterfrom
readybuilderone:fix-api-mappingkey-too-strict-issue
Aug 26, 2021
Merged

fix(apigatewayv2): api mapping key with two hyphens is disallowed#16204
mergify[bot] merged 2 commits intoaws:masterfrom
readybuilderone:fix-api-mappingkey-too-strict-issue

Conversation

@readybuilderone
Copy link
Copy Markdown
Contributor

fix(apigatewayv2): fix api mapping key too strict issue.

This PR fix the issue that Validation of apiMappingKey in ApiMappingProps is too strict.

Closes: #15948


Considerations:

The validation rule of the apiMappingKey was added in PR #9141 to fix issue #8983.

However, as time changed, it looks like the validation rules have changed as well.
But the validation rules are not clearly written out in AWS documentation, so I did various validations in the AWS console based on the unit test, and found the rules to be very complex.

Thanks to @pahud and @nija-at 's suggestions, there is no need to stand in the way between CDK users and API Gateway supporting more possibilities in the future, I just removed the validation logic and the relative unit tests.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Aug 24, 2021

@nija-at nija-at changed the title fix(apigatewayv2): fix api mapping key too strict issue fix(apigatewayv2): api mapping key with two hyphens is disallowed Aug 26, 2021
Copy link
Copy Markdown
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

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

Awesome. Thanks for submitting this PR.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 26, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 1d4b09d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify mergify bot merged commit 0889564 into aws:master Aug 26, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 26, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…s#16204)


fix(apigatewayv2): fix api mapping key too strict issue.

This PR fix the issue that Validation of apiMappingKey in ApiMappingProps is too strict.

Closes: aws#15948 

----
# Considerations:

The validation rule of the apiMappingKey was added in [PR aws#9141](aws#9141) to fix [issue aws#8983](aws#8983). 

However, as time changed, it looks like the validation rules have changed as well.
But the validation rules are not clearly written out in AWS documentation, so I did [various validations](aws#15948 (comment)) in the AWS console based on the unit test, and found the rules to be very complex.

Thanks to @pahud and @nija-at 's suggestions, there is no need to stand in the way between CDK users and API Gateway supporting more possibilities in the future, I just removed the validation logic and the relative unit tests.

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Sep 6, 2021
…s#16204)


fix(apigatewayv2): fix api mapping key too strict issue.

This PR fix the issue that Validation of apiMappingKey in ApiMappingProps is too strict.

Closes: aws#15948 

----
# Considerations:

The validation rule of the apiMappingKey was added in [PR aws#9141](aws#9141) to fix [issue aws#8983](aws#8983). 

However, as time changed, it looks like the validation rules have changed as well.
But the validation rules are not clearly written out in AWS documentation, so I did [various validations](aws#15948 (comment)) in the AWS console based on the unit test, and found the rules to be very complex.

Thanks to @pahud and @nija-at 's suggestions, there is no need to stand in the way between CDK users and API Gateway supporting more possibilities in the future, I just removed the validation logic and the relative unit tests.

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
david-doyle-as24 pushed a commit to david-doyle-as24/aws-cdk that referenced this pull request Sep 7, 2021
…s#16204)


fix(apigatewayv2): fix api mapping key too strict issue.

This PR fix the issue that Validation of apiMappingKey in ApiMappingProps is too strict.

Closes: aws#15948 

----
# Considerations:

The validation rule of the apiMappingKey was added in [PR aws#9141](aws#9141) to fix [issue aws#8983](aws#8983). 

However, as time changed, it looks like the validation rules have changed as well.
But the validation rules are not clearly written out in AWS documentation, so I did [various validations](aws#15948 (comment)) in the AWS console based on the unit test, and found the rules to be very complex.

Thanks to @pahud and @nija-at 's suggestions, there is no need to stand in the way between CDK users and API Gateway supporting more possibilities in the future, I just removed the validation logic and the relative unit tests.

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants