Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

test for @clientName of TCGC and @encodedName of compiler #511

Merged
merged 13 commits into from
Feb 21, 2024

Conversation

msyyc
Copy link
Member

@msyyc msyyc commented Jan 30, 2024

fixes #508, #509

  • These cases are almost same with existing cases for @projectedName so devs shall be able to add the test with few cost

Copy link

changeset-bot bot commented Jan 30, 2024

🦋 Changeset detected

Latest commit: 55fe246

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@azure-tools/cadl-ranch-specs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@msyyc msyyc marked this pull request as ready for review January 30, 2024 09:20
@msyyc msyyc changed the title [WIP] test for @clientName of TCGC and @encodedName of compiler test for @clientName of TCGC and @encodedName of compiler Jan 30, 2024
Copy link
Member

@weidongxu-microsoft weidongxu-microsoft left a comment

Choose a reason for hiding this comment

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

@msyyc
Copy link
Member Author

msyyc commented Feb 4, 2024

Is it a direct copy from https://github.com/Azure/cadl-ranch/tree/main/packages/cadl-ranch-specs/http/projection/projected-name with only decorator change?

Yeah, almost

Copy link
Member

@qiaozha qiaozha left a comment

Choose a reason for hiding this comment

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

LGTM, we should remove projectedName test cases after it's offically announced deprecated microsoft/typespec#2832

Copy link
Member

@tadelesh tadelesh left a comment

Choose a reason for hiding this comment

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

Can we also add test for client renaming of interface or namespace?

packages/cadl-ranch-api/src/types.ts Outdated Show resolved Hide resolved
packages/cadl-ranch-expect/src/decorators.ts Outdated Show resolved Hide resolved
packages/cadl-ranch/src/server/server.ts Outdated Show resolved Hide resolved
@chunyu3
Copy link
Member

chunyu3 commented Feb 21, 2024

others LGTM

@qiaozha qiaozha merged commit 034ee63 into main Feb 21, 2024
7 checks passed
@qiaozha qiaozha deleted the clientname-tcgc branch February 21, 2024 08:07
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.

Add Cadl-ranch test case for @encodedName
6 participants