Граф коммитов

43 Коммитов

Автор SHA1 Сообщение Дата
Laurent Mazuel c7b9c7ed6d Fix serialization from dict if datetime given 2018-01-30 12:22:35 -08:00
Laurent Mazuel 8a4f090e52 Add EventGrid TopicCredentials 2018-01-30 12:22:35 -08:00
Laurent Mazuel 7cce81e84e
Allow unkwown kwargs for Model in Autorest.Python 3.0 (#81) 2018-01-17 17:01:12 -08:00
Laurent Mazuel 788dc0cf2a
Adding LRO implementation to msrest (#78)
* Adding LRO implementation to msrest

* Improve callbacks of Poller

* Add polling tests

* Restore cbs as it was

* Improve polling testing

* Complete coverage of poller

* Complete coverage of poller, for real
2018-01-08 10:41:23 -08:00
Laurent Mazuel 952b50717d More strict date parsing 2018-01-03 13:57:32 -08:00
Laurent Mazuel b5dc35e8aa Externalize Stream 2017-12-23 10:28:59 -08:00
Laurent Mazuel 69c9d1ad31 Deserialize unkwon enum value as string 2017-12-21 15:37:14 -08:00
Laurent Mazuel 21478ec9f1 Improve enum deserialization if cross-model 2017-12-21 15:37:14 -08:00
Laurent Mazuel 29fc71fcee Add kwargs to Model 2017-12-21 15:37:14 -08:00
Laurent Mazuel 612a5d56d8 Fix addProp and flatening 2017-12-14 16:10:51 -08:00
Laurent Mazuel ae963d0b2e
Additional properties support (#71)
* Additional properties support

* Improve AdditionalProperties for Python

* Do not set add_prop if nothing to set (backward compat)

* Disambiguate add_prop if defined as a regular property

* Make addProp robust to explicit property declaration
2017-12-13 13:27:45 -08:00
Laurent Mazuel 0d9573bab9
Fix formData 2017-11-20 13:03:34 -08:00
Laurent Mazuel 906dda8d4a
Lenient Discriminator 2017-11-15 15:16:59 -08:00
Laurent Mazuel c735b4741d
Rename CS class to CognitiveServicesCredentials 2017-10-26 10:40:40 -07:00
Laurent Mazuel c5f5831455
Support ApiKey scenario as a credentials 2017-10-25 11:55:54 -07:00
Laurent Mazuel aaa4b8d30c Add auth tests 2017-10-12 14:38:34 -07:00
Laurent Mazuel 6d1b656290 Accept set as a valid [str] 2017-10-04 17:49:37 -07:00
Laurent Mazuel 2b31bdabef Fix #23 - Remove import requests from exceptions.py (#56) 2017-09-28 14:07:40 -07:00
Laurent Mazuel 3685632328 Fix #46 - best except (#55) 2017-09-28 12:35:54 -07:00
Laurent Mazuel bb876c2342 Fix #41 - str is not a valid iter type (#54) 2017-09-28 11:43:24 -07:00
Laurent Mazuel 36172c1011 Fix #51 - Client Side Validation as a parameter (#53) 2017-09-28 11:23:21 -07:00
Laurent Mazuel 92a78ca3ce Add session callback (#52) 2017-09-28 11:18:44 -07:00
Laurent Mazuel bad8585bcb Fail if requests.Response is not valid JSON (#49)
* Fail if requests.Response is not valid JSON

* Py compat for JSONDecodeError

* Support for Swagger produces and default JSON

* Fix Py2.7 compat

* Empty content is valid JSON for null (Autorest compat)

* Encapsulate JSONDecodeError

* Remove bad comment
2017-09-25 11:28:22 -07:00
Laurent Mazuel e02e7cc9b3 Fix #44 - mixed dict with real enum if modelAsString 2017-08-23 09:09:37 -07:00
Laurent Mazuel 7ab2a981e0 Fix #42 - Duration error in 0.4.12 2017-08-22 08:51:42 -07:00
Laurent Mazuel 519358eec8 PyLint updates 2017-08-15 11:55:35 -07:00
Laurent Mazuel c32364ad2e transformer now returns tuple key, value 2017-08-14 14:00:45 -07:00
Laurent Mazuel 15180c6950 Add keep_readonly to serialize 2017-08-11 14:03:58 -07:00
Laurent Mazuel 07a7844fd3 Add override deserialization test 2017-08-11 14:02:13 -07:00
Laurent Mazuel c517615a0a Simplify from_dict 2017-08-10 17:22:46 -07:00
Laurent Mazuel 19c9f78946 Make validation tests order agnostic 2017-08-10 10:17:01 -07:00
Laurent Mazuel 0edc9b5c5f Fix Recursive validate 2017-08-10 09:55:28 -07:00
Laurent Mazuel ac28fb41ac Fix list validation 2017-08-10 09:50:19 -07:00
Laurent Mazuel 7ab47fee3c Add deserilization and validate to Model 2017-08-10 09:34:53 -07:00
Laurent Mazuel bd223237b8 Parse JSON from model from_dict/deserialize 2017-08-07 09:47:00 -07:00
Laurent Mazuel 391de196ab Add as_dict / serialize 2017-08-04 17:45:01 -07:00
Laurent Mazuel c0e61ac381 Fix #38 - Enum type better check 2017-08-04 13:02:16 -07:00
Laurent Mazuel adadc45733 Add a serialize method to Model 2017-08-04 11:10:34 -07:00
Laurent Mazuel bb7a147075 Remove to_dict 2017-08-03 14:33:18 -07:00
Laurent Mazuel 6313414ce1 Add a duration serialization test 2017-08-03 14:33:05 -07:00
Laurent Mazuel fef36b6d14 Add to_dict to Model 2017-08-03 10:04:04 -07:00
Laurent Mazuel 9269522890 Accept RestAPI syntax as input of serializer 2017-08-03 09:05:14 -07:00
Laurent Mazuel f4c032e9f1 Use pytest for tests discovering 2017-07-18 09:20:22 -07:00