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

Migrate azure core library to use generated decorator signature #1198

Merged
merged 4 commits into from
Jul 18, 2024

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Jul 18, 2024

Step to having all our libraries use tspd to generate the signatures and make sure they are in sync.

There is quite a lot of times we expected the wrong type which would cause a crash. This fix a few to get the more precise type in the TypeSpec if it was going to crash originally. Otherwise expand the type in the TS

@microsoft-github-policy-service microsoft-github-policy-service bot added the lib:azure-core Issues for @azure-tools/typespec-azure-core library label Jul 18, 2024
@azure-sdk
Copy link
Collaborator

azure-sdk commented Jul 18, 2024

All changed packages have been documented.

  • @azure-tools/typespec-azure-core
Show changes

@azure-tools/typespec-azure-core - fix ✏️

Use some more precise types for certain decorators that would have crashed otherwise

Copy link
Member

@chrisradek chrisradek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay for auto-generated defs!

@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 Jul 18, 2024
Merged via the queue into Azure:main with commit a2c7560 Jul 18, 2024
22 checks passed
@timotheeguerin timotheeguerin deleted the azure-core-dec-signatures branch July 18, 2024 19:12
iscai-msft pushed a commit to iscai-msft/typespec-azure that referenced this pull request Jul 18, 2024
…e#1198)

Step to having all our libraries use tspd to generate the signatures and
make sure they are in sync.

There is quite a lot of times we expected the wrong type which would
cause a crash. This fix a few to get the more precise type in the
TypeSpec if it was going to crash originally. Otherwise expand the type
in the TS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib:azure-core Issues for @azure-tools/typespec-azure-core library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants