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

feat(http-client-csharp): adopt TCGC getAllOperations #3867

Merged
merged 34 commits into from
Jul 31, 2024

Conversation

archerzz
Copy link
Member

@archerzz archerzz commented Jul 17, 2024

  • update emitter logic to derive operation definitions from TCGC instead of raw compiler output
  • temporarily work around the mis-use of InputParameter.DefaultValue for constant values
    • add conversion from InputLiteralType.Value to InputParameter.DefaultValue in converter
    • add implicit conversion operation from InputLiteralType to InputConstant
  • update unit test cases
  • minor error message improvement

part of Azure/autorest.csharp#3994

- update emitter logic to derive operation defintions from TCGC instead of raw compiler result
- update `ExampleMockValueBuilder` to get constant value from `InputLiteralType`
- add implicit conversion operation from `InputLiteralType` to `InputConstant`
- update unit test cases
- minor error message improvment

part of Azure/autorest.csharp#3994
@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Jul 17, 2024
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

1 similar comment
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@archerzz archerzz force-pushed the http-client-csharp/tcgc/getAllOps branch from 48f9cef to 6f1003e Compare July 17, 2024 08:03
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jul 17, 2024

API change check

APIView has identified API level changes in this PR and created following API reviews.

Microsoft.Generator.CSharp.Input

@archerzz archerzz force-pushed the http-client-csharp/tcgc/getAllOps branch from aff35e2 to 03c4ddf Compare July 23, 2024 07:45
@archerzz
Copy link
Member Author

@archerzz archerzz added this pull request to the merge queue Jul 31, 2024
Merged via the queue into microsoft:main with commit 72d544c Jul 31, 2024
21 checks passed
@archerzz archerzz deleted the http-client-csharp/tcgc/getAllOps branch July 31, 2024 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants