-
Notifications
You must be signed in to change notification settings - Fork 166
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
[TCGC] Adopt getAllOperation
#3994
Labels
Comments
This was referenced Apr 8, 2024
archerzz
changed the title
[TCGC] Early Adoption of
[TCGC] Adoption of May 7, 2024
getAllOperation
getAllOperation
archerzz
changed the title
[TCGC] Adoption of
[TCGC] Adopt May 7, 2024
getAllOperation
getAllOperation
archerzz
added a commit
to archerzz/autorest.csharp
that referenced
this issue
Jun 18, 2024
This is a prerequisite change for Azure#3994 The null check for client description is meaningless, because `ClientBuilder` will add a default description anyway: https://github.com/Azure/autorest.csharp/blob/4d55b600ee877e68675297546e70a765fb679039/src/AutoRest.CSharp/Common/Output/Builders/ClientBuilder.cs#L28-L31 Right now in our emitter, we will set `description` to an empty string: https://github.com/Azure/autorest.csharp/blob/4d55b600ee877e68675297546e70a765fb679039/src/TypeSpec.Extension/Emitter.Csharp/src/lib/client-model-builder.ts#L281 But in TCGC, the `description` will be null. So, let's remove this meaningless check.
6 tasks
archerzz
added a commit
that referenced
this issue
Jun 20, 2024
This is a prerequisite change for #3994 The null check for client description is meaningless, because `ClientBuilder` will add a default description anyway: https://github.com/Azure/autorest.csharp/blob/4d55b600ee877e68675297546e70a765fb679039/src/AutoRest.CSharp/Common/Output/Builders/ClientBuilder.cs#L28-L31 Right now in our emitter, we will set `description` to an empty string: https://github.com/Azure/autorest.csharp/blob/4d55b600ee877e68675297546e70a765fb679039/src/TypeSpec.Extension/Emitter.Csharp/src/lib/client-model-builder.ts#L281 But in TCGC, the `description` will be null. So, let's remove this meaningless check.
archerzz
added a commit
to archerzz/autorest.csharp
that referenced
this issue
Jun 20, 2024
This is a prerequisite of Azure#3994 `Creatable` is not used in generator. See: - `TypeSpecInputClientConverter`: https://github.com/Azure/autorest.csharp/blob/feature/v3/src/AutoRest.CSharp/Common/Input/InputTypes/Serialization/TypeSpecInputClientConverter.cs - `InputClient`: https://github.com/Azure/autorest.csharp/blob/feature/v3/src/AutoRest.CSharp/Common/Input/InputTypes/InputClient.cs Let's remove it.
6 tasks
archerzz
added a commit
to archerzz/autorest.csharp
that referenced
this issue
Jun 27, 2024
This is a prerequisite of Azure#3994 `Creatable` is not used in generator. See: - `TypeSpecInputClientConverter`: https://github.com/Azure/autorest.csharp/blob/feature/v3/src/AutoRest.CSharp/Common/Input/InputTypes/Serialization/TypeSpecInputClientConverter.cs - `InputClient`: https://github.com/Azure/autorest.csharp/blob/feature/v3/src/AutoRest.CSharp/Common/Input/InputTypes/InputClient.cs Let's remove it.
ArcturusZhang
added a commit
that referenced
this issue
Jun 27, 2024
* refactor(dpg): remove unnecessary `Creatable` property This is a prerequisite of #3994 `Creatable` is not used in generator. See: - `TypeSpecInputClientConverter`: https://github.com/Azure/autorest.csharp/blob/feature/v3/src/AutoRest.CSharp/Common/Input/InputTypes/Serialization/TypeSpecInputClientConverter.cs - `InputClient`: https://github.com/Azure/autorest.csharp/blob/feature/v3/src/AutoRest.CSharp/Common/Input/InputTypes/InputClient.cs Let's remove it. * try to revert the problematic change * try to add it into peer dep --------- Co-authored-by: Dapeng Zhang <[email protected]>
archerzz
pushed a commit
to archerzz/typespec
that referenced
this issue
Jul 17, 2024
- 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
github-merge-queue bot
pushed a commit
to microsoft/typespec
that referenced
this issue
Jul 31, 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 --------- Co-authored-by: Mingzhe Huang (from Dev Box) <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per https://github.com/Azure/typespec-azure/issues/2745
Tasks
SdkApiVersionParameter
as part ofSdkParameter
typespec-azure#948SdkMethod
interfaces are not exported typespec-azure#969SdkMethodParameter
should have a way to knowlocation
typespec-azure#981SdkModelPropertyTypeBase.clientDefaultValue
should be a concrete type typespec-azure#988http
auth microsoft/typespec#3568SdkEndpointParamter.clientDefaultValue
should have value typespec-azure#989SdkHttpResponse.contentTypes?
can be empty array typespec-azure#992@server
description for defaultendpoint
client parameter typespec-azure#1007@scenarioService
cadl-ranch#597getSdkHttpParameter()
doesn't handle default value typespec-azure#1030api-version
typespec-azure#1046SdkClientType
typespec-azure#1060Creatable
property #4841encode
between SdkMethodParameter and HttpOperationParameter typespec-azure#1084apiVersions
of subclients can be undefined typespec-azure#1089@clientName
not work on namespace typespec-azure#1091SdkMethodBase.details
could be meaningless sometimes typespec-azure#1097The text was updated successfully, but these errors were encountered: