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(apigatewayv2): rename 'domainName' to 'name' in the DomainName construct #11989

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

nija-at
Copy link
Contributor

@nija-at nija-at commented Dec 10, 2020

C# does not allow a property to have the same name as its class.
Jsii works around this by renaming the construct to _DomainName which
is ugly.

Instead, change the property name from domainName to name and avoid
this conflict entirely.

Further, re-categorize these class of defects as an error instead of a
warning.

BREAKING CHANGE: domainName property under DomainName has been
renamed to name.


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

…construct

C# does not allow a property to have the same name as its class.
Jsii works around this by renaming the construct to `_DomainName` which
is ugly.

Instead, change the property name from `domainName` to `name` and avoid
this conflict entirely.

Further, re-categorize these class of defects as an error instead of a
warning.

BREAKING CHANGE: `domainName` property under `DomainName` has been
renamed to `name`.
@nija-at nija-at requested review from RomainMuller and a team December 10, 2020 14:57
@nija-at nija-at self-assigned this Dec 10, 2020
@gitpod-io
Copy link

gitpod-io bot commented Dec 10, 2020

@github-actions github-actions bot added the @aws-cdk/aws-apigatewayv2 Related to Amazon API Gateway v2 label Dec 10, 2020
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Dec 10, 2020
/**
* The domain name associated with the regional endpoint for this custom domain name.
*/
public readonly name: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

why did you remove the docs? Specifically, the @attribute?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are automatically inherited from the interface IDomainName.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is also why the linter does not complain.

@nija-at nija-at requested review from NetaNir and a team December 10, 2020 15:24
@mergify
Copy link
Contributor

mergify bot commented Dec 10, 2020

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).

@mergify mergify bot merged commit 1be831a into master Dec 10, 2020
@mergify mergify bot deleted the nija-at/apigwv2-domainname branch December 10, 2020 15:26
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: af34c53
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

flochaz pushed a commit to flochaz/aws-cdk that referenced this pull request Jan 5, 2021
…construct (aws#11989)

C# does not allow a property to have the same name as its class.
Jsii works around this by renaming the construct to `_DomainName` which
is ugly.

Instead, change the property name from `domainName` to `name` and avoid
this conflict entirely.

Further, re-categorize these class of defects as an error instead of a
warning.

BREAKING CHANGE: `domainName` property under `DomainName` has been
renamed to `name`.

----

*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
@aws-cdk/aws-apigatewayv2 Related to Amazon API Gateway v2 contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants