-
Notifications
You must be signed in to change notification settings - Fork 68
[tcgc] add stream metadata #3867
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
|
| ): [SdkStreamMetadata, readonly Diagnostic[]] { | ||
| const diagnostics = createDiagnosticCollector(); | ||
| const bodyType = diagnostics.pipe( | ||
| getClientTypeWithDiagnostics(context, tspStreamMetadata.bodyType, operation), |
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'm just wondering if these stream models need usage flag?
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.
ooh, that's a very good point. I think we want it just for .streamType, since that's what emitters need to gxenerate deserialization / serialization code. So it should be input / output. The question is if we need json for it. I think yes, but also the json flag was added for how csharp serializes json models, so not sure how applicable that would be in the streaming scenario. I think from a pure tcgc standpoint though, the json usage makes sense though
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 also updated access for the stream type based off of the operation, might be a bit unnecessary, but I figure why not
fixes #3862