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

[core-client] Allow resettable streams #24049

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

timovv
Copy link
Member

@timovv timovv commented Nov 29, 2022

Packages impacted by this PR

  • @azure/core-client

Describe the problem that is addressed by this PR

Support for resettable streams was added to core-rest-pipeline some time ago in #21013, but a corresponding change to core-client's validation is also needed (see the issue: #24048)

Provide a list of related PRs (if any)

@@ -433,10 +433,11 @@ function serializeBasicTypes(typeName: string, objectName: string, value: any):
!(value instanceof ArrayBuffer) &&
!ArrayBuffer.isView(value) &&
// File objects count as a type of Blob, so we want to use instanceof explicitly
!((typeof Blob === "function" || typeof Blob === "object") && value instanceof Blob)
!((typeof Blob === "function" || typeof Blob === "object") && value instanceof Blob) &&
objectType !== "function"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we can make this check more specific in a meaningful way, but am definitely open to ideas.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

Copy link
Member

@deyaaeldeen deyaaeldeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, thanks!

@timovv timovv merged commit ab02adb into Azure:main Nov 30, 2022
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-js that referenced this pull request Jun 27, 2023
[Hub Generated] Review request for Microsoft.MachineLearningServices to add version preview/2023-06-01-preview (Azure#24049)

* Adds base for updating Microsoft.MachineLearningServices from version preview/2023-04-01-preview to version 2023-06-01-preview

* Updates readme

* Updates API version in new specs and examples

* MFE 2023-06-01-preview staging (Azure#24051)

* Updated mfe.json

* Added package example

* Updated custom-words.txt

* Updated package examples

* Added pattern retriction to resource name parameters

* Fixed cross-api breaking changes

* Fixed cross-api breaking changes

* Added descriptions

* Added description

* Separate workspace rp swagger from mlc (Azure#24249)

* separate workspace rp swagger from mlc

* add missing parameter

* Updated mfe.json descriptions for put 200 responses (Azure#24295)

* update EnableNodePublicIp for computeInstance of MLC (Azure#24231)

Co-authored-by: Bingchen Li <[email protected]>

* Update workspaceRP swagger with automation result (Azure#24333)

* Update workspace rp swagger with automation result

rename pe definition to avoid conflict

fix

update PE name

Update connection credential

hide armid

fix more things

Fix enum issue

fix polymorphism

Update examples

Update body name and example

fix more issue

update response body

Fix

Revert "file change"

This reverts commit 4a1fdccf6eb22e1dda82d3acce8065fae171f422.

file change

Update swagger

fix errors

update format

add example for connetion list secrets api

run prettier

* Fixing more issue

* revert custom-words

* run prettier

* Update securityDefinitions

* Revert operation id

* Update description and summary.

* fix prettier issue and add description

* remove redundent object definition

* fixing swagger issue

revert PaginationParameter

* Revert back to old file with only reorder for better compare

* Revert "Revert back to old file with only reorder for better compare"

This reverts commit 8feb7d84319124ff3a447daffef894da18ef0077.

* Revert connection v2 tag issue

* Add back delete op for network rule

* Add back example for the removed API

* Suppress header check caused by old design

* fix delete rule in path

* Update example error

* Update delete rule api and remove suppression

* Fixed merge conflicts in custom-words.txt (Azure#24532)

---------

Co-authored-by: ZhidaLiu <[email protected]>
Co-authored-by: libc16 <[email protected]>
Co-authored-by: Bingchen Li <[email protected]>
Co-authored-by: Wes Haggard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ACR] Resettable streams don't work for uploadBlob and uploadManifest
3 participants