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

Autorest respect clientName in more places #1455

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Aug 30, 2024

fix #442

@clientName is respected for:

  • definition names
  • enum values names
  • parameters names(for body it replace the name for other it adds x-ms-client-name)

Doing this now as this will help getting rid of some use of @extension

This makes this doc accurate now https://azure.github.io/typespec-azure/docs/next/migrate-swagger/faq/breakingchange#createorupdate-put-apis as well

@azure-sdk
Copy link
Collaborator

azure-sdk commented Aug 30, 2024

All changed packages have been documented.

  • @azure-tools/typespec-autorest
Show changes

@azure-tools/typespec-autorest - feature ✏️

Respect @clientName for definition names(model, enums, union, etc.), enum and union member and for parameters

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

@timotheeguerin timotheeguerin added this pull request to the merge queue Aug 30, 2024
Merged via the queue into Azure:main with commit 6b6a652 Aug 30, 2024
22 checks passed
@timotheeguerin timotheeguerin deleted the autorest-clientname branch August 30, 2024 17:06
markcowl pushed a commit to markcowl/typespec-azure that referenced this pull request Sep 7, 2024
fix [Azure#442](Azure#442)

`@clientName` is respected for:
- definition names
- enum values names
- parameters names(for body it replace the `name` for other it adds
`x-ms-client-name`)

Doing this now as this will help getting rid of some use of `@extension`

This makes this doc accurate now
https://azure.github.io/typespec-azure/docs/next/migrate-swagger/faq/breakingchange#createorupdate-put-apis
as well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

typespec-autorest does not honor @clientName
3 participants