-
Notifications
You must be signed in to change notification settings - Fork 51
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
Update the client generation document to provide valid typespec samples #2237
base: main
Are you sure you want to change the base?
Conversation
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.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (2)
- website/src/content/docs/docs/howtos/Generate client libraries/06types.mdx: Language not supported
- website/src/content/docs/docs/howtos/Generate client libraries/08methodInputs.mdx: Language not supported
No changes needing a change description found. |
You can try these changes here
|
```typespec | ||
model Animal { | ||
name: string; | ||
kind: string; | ||
...Record<string | int32>; | ||
} | ||
``` | ||
|
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.
if we do not support union type, we could also remove this section.
|
||
model Ragdoll {} | ||
``` | ||
|
||
</ClientTabItem> | ||
<ClientTabItem lang="tcgc"> | ||
|
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.
the next line could be removed.
Update the below 2 documents to validate all existing typespec samples