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

refactor(http-client-csharp): dump deprecated description properties #5154

Merged

Conversation

archerzz
Copy link
Member

  • emitter: replace all description properties of input types with summary and doc
  • generator:
    • update json converters for the emitter schema change
    • only expose Summary and Doc properties if they are used by other classes
  • update test cases accordingly

part of #4771

- emitter: replace all `description` properties of input types with `summary` and `doc`
- generator:
  - update json converters for the emitter schema change
  - only expose `Summary` and `Doc` properties if they are used by other classes
- update test cases accordingly

part of microsoft#4771
@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 Nov 20, 2024
@archerzz archerzz changed the title refactor(http-client-csharp): remove filter-out-core-models option refactor(http-client-csharp): dump deprecated description properties Nov 20, 2024
@azure-sdk
Copy link
Collaborator

azure-sdk commented Nov 20, 2024

API change check

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

Microsoft.Generator.CSharp.Input
Microsoft.Generator.CSharp

@archerzz
Copy link
Member Author

Changes since last review:

  • Change all input types to make Summary and Doc properties as string?
  • Update type converters to not set default value during de-serialization. Set them when generating output models.
  • Some minor fixes and refactoring

@archerzz archerzz marked this pull request as ready for review November 26, 2024 09:44
# Conflicts:
#	packages/compiler/src/server/serverlib.ts
#	packages/http-client-java/emitter/src/code-model-builder.ts
#	packages/http-client-java/emitter/src/emitter.ts
#	packages/http-client-java/generator/http-client-generator-test/package.json
#	packages/http-client-java/package-lock.json
#	packages/http-client-java/package.json
#	packages/typespec-vscode/src/code-action-provider.ts
#	packages/typespec-vscode/src/extension.ts
#	pnpm-lock.yaml
@azure-sdk
Copy link
Collaborator

azure-sdk commented Dec 17, 2024

No changes needing a change description found.

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

Mingzhe Huang (from Dev Box) and others added 11 commits December 17, 2024 16:21
The new pipeline
https://dev.azure.com/azure-sdk/internal/_build?definitionId=7395&_a=summary
has been given access to the storage account through security group. So,
it is not required for any connection string to be in the yml file. This
PR removes this string.

Please review and approve this PR. Thanks
…5398)

This PR adds the missing account name to the script. Please review and
approve the PR. Thanks
…ft#5206)

Fix microsoft#5155

When there is any changes/PR about typespec-vscode, we want to provide
an extension to try. So we will publish `typespec-vscode-0.XXX.0.vsix`
as pipeline artifact, and will show `VSCode Extension` with the download
url in the try-it comment. Customer can download this extension file to
try.

---------

Co-authored-by: Mark Cowlishaw <[email protected]>
@archerzz archerzz added this pull request to the merge queue Dec 18, 2024
Merged via the queue into microsoft:main with commit 4225733 Dec 18, 2024
21 checks passed
@archerzz archerzz deleted the http-client-csharp/adopt-tcgc-doc-properties branch December 18, 2024 05:19
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.