Skip to content

[TCGC] Support array encode on model property - #3583

Merged
tadelesh merged 3 commits into
mainfrom
array_encode
Dec 4, 2025
Merged

[TCGC] Support array encode on model property#3583
tadelesh merged 3 commits into
mainfrom
array_encode

Conversation

@tadelesh

Copy link
Copy Markdown
Member

Resolve: #3534

@azure-sdk

azure-sdk commented Nov 28, 2025

Copy link
Copy Markdown
Collaborator

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

pkg-pr-new Bot commented Nov 28, 2025

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 1e8c3eb

@azure-sdk

azure-sdk commented Nov 28, 2025

Copy link
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website

Comment thread packages/typespec-client-generator-core/src/interfaces.ts
Comment thread packages/typespec-client-generator-core/test/types/array.test.ts
Comment thread packages/typespec-client-generator-core/test/types/array.test.ts
@tadelesh

tadelesh commented Dec 2, 2025

Copy link
Copy Markdown
Member Author

Pending discussions:

  1. Where to put the lint
  2. Whether to put the encode info in the array type or model property
  3. Whether TypeSpec will put the build-in array encode type

@tadelesh tadelesh self-assigned this Dec 3, 2025
Comment thread packages/typespec-client-generator-core/src/types.ts
@tadelesh
tadelesh added this pull request to the merge queue Dec 4, 2025
@tadelesh

tadelesh commented Dec 4, 2025

Copy link
Copy Markdown
Member Author

Pending discussions:

  1. Where to put the lint
  2. Whether to put the encode info in the array type or model property
  3. Whether TypeSpec will put the build-in array encode type
  1. TypeSpec will add the lint. Issue here.
  2. Still keep in model property to keep extensibility.
  3. Nope. So, keep current TCGC type.

Merged via the queue into main with commit 10251be Dec 4, 2025
26 checks passed
@tadelesh
tadelesh deleted the array_encode branch December 4, 2025 03:06
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

7 participants