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][Bug] model is array case not handled correctly #690

Closed
haolingdong-msft opened this issue Apr 18, 2024 · 0 comments · Fixed by #692
Closed

[TCGC][Bug] model is array case not handled correctly #690

haolingdong-msft opened this issue Apr 18, 2024 · 0 comments · Fixed by #692
Labels
lib:tcgc Issues for @azure-tools/typespec-client-generator-core library needs-area

Comments

@haolingdong-msft
Copy link
Member

TSP definition:

model ResourceArray is Resource[];

 @route("/get-array")
 getArray(): ResourceArray;

TCGC will return the type for ResourceArray as a SDKModelType with additional properties, which is not correct. It should return it as SdkArrayType.
image

@markcowl markcowl added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label Apr 18, 2024
github-merge-queue bot pushed a commit that referenced this issue Apr 19, 2024
@iscai-msft please help to review and release, thanks.

fix: #690

cc: @haolingdong-msft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib:tcgc Issues for @azure-tools/typespec-client-generator-core library needs-area
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants