Comments (7)
Hi @ludokriss
Can you tell us what version of eventgrid sdk are you using? Also what version of python?
from msrest-for-python.
Hey, sorry that I didn't include versions. Here it is, with python 3.7:
azure-eventgrid==1.3.0
msrest==0.6.18
Tested the new SDK so versions:
azure-eventgrid==2.0.0b1
msrest==0.6.19
And the inconsistent behavior is still there. Btw., I like the new sdk 👍
from msrest-for-python.
Hey, #224 works perfectly for datetime types, so 👍 on that one. Added a pull request on the #224 PR for decimal types if you want to include that as well
from msrest-for-python.
To follow up with a potential solution to the problem as well, you could implement a change in the current serialize_object to handle more types as it typically ends up here:
msrest-for-python/msrest/serialization.py
Lines 936 to 980 in 98e2ebe
If you add some more types to this, so that you handle dates by passing datetime types to the date-serializer etc. then you are good.
from msrest-for-python.
Hi @ludokriss
In case you're using an old one, we just released a complete revamping of the SDK as preview:
https://pypi.org/project/azure-eventgrid/2.0.0b1/
from msrest-for-python.
Hi @ludokriss
Got it, may I ask you to provide a data that has all the type you could expect to work by default? You mentionned decimals, but instead of guessing an actual Python code dict would be awesome :).
Note: I'm happy you like this new SDK ;)
from msrest-for-python.
Could you try #224 ?
from msrest-for-python.
Related Issues (20)
- "deserialize" from base class Model should have types HOT 1
- If we flatten a constant, it's not getting serialized correctly HOT 1
- Unreachable assertion in test_conf_async_trio_requests HOT 1
- switch ci from travis to GitHub actions HOT 1
- Bug when serializing data with None in header HOT 2
- Incorrect HASH encountered when installing using pip
- Update serializer to honor the null sentinel from azure core
- A warning is logged while using msrest where urllib3 issues: DeprecationWarning: Using 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' instead
- allow models to deserialize an azure.core.rest.HttpResponse
- Allow using ConsumptionManagementClient as a context manager for HTTPS connections reuse
- [feature] Immutable, hashable models, with text representations
- msrest.serialization.Deserializer.deserialize_object() cannot handle subclasses HOT 2
- This repo is missing important files
- 0.7.0 incompatible with python 3.5? HOT 3
- msrest import error while deploying to azure app HOT 1
- Latest versions (`v0.7.0` and `v0.7.1`) don't have git tags
- versions 3.1.1 through 3.2.1 of oauthlib are vulnerable to CVE-2022-36087
- Serialize np.float64 as float HOT 2
- Question about certifi license compatibility HOT 1
- Failing tests with Python 3.12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msrest-for-python.