Skip to content

Conversation

@tadelesh
Copy link
Member

Resolve: #3534

@azure-sdk
Copy link
Collaborator

azure-sdk commented Nov 28, 2025

All changed packages have been documented.

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

@azure-tools/typespec-client-generator-core - feature ✏️

Support array encode on model property.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 28, 2025

Open in StackBlitz

npm i https://pkg.pr.new/Azure/typespec-azure/@azure-tools/typespec-client-generator-core@3583

commit: 1e8c3eb

@azure-sdk
Copy link
Collaborator

azure-sdk commented Nov 28, 2025

You can try these changes here

🛝 Playground 🌐 Website

strictEqual(prop.type, modelProp.type);
});

it("array with encode", async () => {
Copy link
Member

Choose a reason for hiding this comment

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

Can we add more test on this? I think we only support array of string to have this encoding. Shall we report error/warning if this is used on other types?

Copy link
Member Author

Choose a reason for hiding this comment

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

I hope TypeSpec core could have such lint. I left comment in the original PR of core.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks, could you provide the link of that comment here? This PR is good to go but we need to confirm with TypeSpec team about where the check shall happen.

Copy link
Member Author

Choose a reason for hiding this comment

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

Link here.

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.

CSV encoding for model properties TCGC Implementation

5 participants