Uh oh!
There was an error while loading. Please reload this page.
Fix: loading the document requires knowing the format in advance - #1929
Fix: loading the document requires knowing the format in advance#1929Maggie Kimani (MaggieKimani1) wants to merge 20 commits into
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Vincent Biret (baywet)
left a comment
There was a problem hiding this comment.
Thanks for getting this started.
A couple of remarks
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
| try | ||
| { | ||
| jsonNode = LoadJsonNodesFromYamlDocument(input); | ||
| jsonNode = await Task.Run(() => LoadJsonNodesFromYamlDocument(input)); |
There was a problem hiding this comment.
why are we adding the task run here?
There was a problem hiding this comment.
The caller is async here
And the interface method's equivalent in the JsonReader class is also async
If I change this method's signature to be synchronous, I'll also need to update this JSON content to be read synchronously:
Maggie Kimani (MaggieKimani1)
commented
Nov 19, 2024
Vincent Biret (@baywet) just a head's up, the functionality on inspecting the input stream to determine the format might change based on my discussion with Darrel (@darrelmiller) here #1918 (comment) |
Vincent Biret (baywet)
commented
Nov 19, 2024
Maggie Kimani (@MaggieKimani1) are we going to implement those changes in this PR or in a subsequent one? |
Maggie Kimani (MaggieKimani1)
commented
Nov 20, 2024
I can implement it here so as not to lose the other changes on moving to async |
Co-authored-by: Vincent Biret <vibiret@microsoft.com>




This PR:
OpenApiModelFactory.GetStreamAsyncto allow for cancellation of tasks/requestsFixes#1917, #1918