-
Notifications
You must be signed in to change notification settings - Fork 30
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
cadl-ranch-specs, add basic test case of clientInitialization #727
base: main
Are you sure you want to change the base?
cadl-ranch-specs, add basic test case of clientInitialization #727
Conversation
🦋 Changeset detectedLatest commit: 7fb502f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may need add more complex cases:
- more complex client hierarchy, e.g. more than 3 layer clients
- co-operate with @client / @operationGroup decorator
- with paramMaps to map a parameter to the property of the Client initialization Model
- a senario that not all operations has the bumped parameter
Wondering whether we need to have a subfolder for different scenarios. And this be in a "basic" folder. As the characteristic of the "client hierarchy", some of them cannot co-exist in same main.tsp. E.g. client by namespace/interface cannot be in same file as client by |
Yes. Those are separate scenarios and may not co-exist and should be placed in different folder. |
This is only part of the support for Azure/autorest.java#2428 cadl-ranch Azure/cadl-ranch#727 user code ```java InitializationClient client = new InitializationClientBuilder() .name("client1") .buildClient(); client.action(); ```
This is only part of the support for Azure/autorest.java#2428 cadl-ranch Azure/cadl-ranch#727 user code ```java InitializationClient client = new InitializationClientBuilder() .name("client1") .buildClient(); client.action(); ```
@weidongxu-microsoft please hold this. i'm going to redesign all the client related thing in tcgc to consolidate all things related to clients, it may cause changes for decorator. |
Sure. Note that Face API already uses this decorator in their specs (and Java emitter also uses the I guess .NET also uses the TCGC info. I am fine if you want to break some, though. |
Cadl Ranch Contribution Checklist:
@scenario
names. Someone can look at the list of scenarios and understand what I'm covering.@scenarioDoc
s for extra scenario description and to tell people how to pass my mock api check.