-
Notifications
You must be signed in to change notification settings - Fork 65
[TCGC] Support array encode on model property #3583
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
base: main
Are you sure you want to change the base?
Conversation
|
All changed packages have been documented.
Show changes
|
commit: |
|
You can try these changes here
|
| strictEqual(prop.type, modelProp.type); | ||
| }); | ||
|
|
||
| it("array with encode", async () => { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link here.
Resolve: #3534