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

[tcgc] fix string kinds to just use what is coming from tsp #255

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

iscai-msft
Copy link
Contributor

No description provided.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 12, 2024

All changed packages have been documented!

@azure-sdk
Copy link
Collaborator

- "@azure-tools/typespec-client-generator-core"
---

allows us to generate arm packages
Copy link
Member

Choose a reason for hiding this comment

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

not sure this will make much sense to what is fixed here to someone looking at the changelog

@@ -109,21 +109,15 @@ function addFormatInfo(
case "uuid":
case "password":
case "etag":
case "arm-id":
Copy link
Member

Choose a reason for hiding this comment

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

I thought we agreed that @format was not going to be used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh you're right, these are all actual scalar types right?

Copy link
Member

Choose a reason for hiding this comment

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

there should be, password is just @secret, if there is some missing that are needed right now then we should look into adding them as soon as possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok made them actual scalar kinds. to clarify, we should never look at the @format decorator later down the line right?

@@ -195,12 +189,20 @@ function getScalarKind(scalar: Scalar): SdkBuiltInKinds {
case "decimal":
case "plainDate":
case "plainTime":
case "arm-id":
Copy link
Member

Choose a reason for hiding this comment

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

Sorry a lot of those are not built-in the compiler, they are in azure-core so you have to check the right namespace

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.

None yet

3 participants