azure.core.serialization.AzureJSONEncoder (introduced in 1.17.0) serializes datetime.datetime objects in ISO 8601 format, conforming to RFC 3339's specification. #20190
We now use azure.core.serialization.AzureJSONEncoder to serialize json input to azure.core.rest.HttpRequest.
Breaking Changes in the Provisional azure.core.rest package
The text property on azure.core.rest.HttpResponse and azure.core.rest.AsyncHttpResponse has changed to a method, which also takes
an encoding parameter.
Removed iter_text and iter_lines from azure.core.rest.HttpResponse and azure.core.rest.AsyncHttpResponse
Bugs Fixed
The behaviour of the headers returned in azure.core.rest responses now aligns across sync and async. Items can now be checked case-insensitively and without raising an error for format.
azure-core_1.17.0
1.17.0 (2021-08-05)
Features Added
Cut hard dependency on requests library
Added a from_json method which now accepts storage QueueMessage, eventhub's EventData or ServiceBusMessage or simply json bytes to return a CloudEvent
Fixed
Not override "x-ms-client-request-id" if it already exists in the header. #17757
Breaking Changes in the Provisional azure.core.rest package
azure.core.rest will not try to guess the charset anymore if it was impossible to extract it from HttpResponse analysis. This removes our dependency on charset.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps azure-core from 1.11.0 to 1.18.0.
Release notes
Sourced from azure-core's releases.
Commits
ac4ec3a
update (#20521)012b81d
add six to testserver setup.py (#20456)ec3548b
update release date (#20502)791acc1
have LRO support rest requests and responses (#20483)62116d4
[rest] unify response headers behaviors across transports (#20234)6821987
[Core] Follow RFC 3339 datetime formatting for AzureJSONEncoder (#20346)38a1385
remove iter_text and iter_lines (#20460)0ab3cda
make core tests offline (#19986)0cce1ba
[rest] use azure json encoder for json input bodies (#20361)abfb14b
[rest] change text from a property to a method (#20290)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)