Amar Zavery
21541e9c06
updating the structure of defining additionalProperties properties in the mapper, the way it is done in autorest.typescript
2019-07-11 13:43:38 -07:00
Amar Zavery
c50cc0d5f1
- compare model property name and the clientName of the polymorphic discriminator
...
- check explicitly that defaultValue is not undefined
- unskip test
2019-07-10 20:06:22 -07:00
Amar Zavery
cb0c0a5279
serialization updates
2019-07-10 16:44:40 -07:00
Kamil Pajdzik
f0833599b9
Remove default case-insensitivity
2019-06-26 09:18:35 -07:00
Kamil Pajdzik
83d0a3275b
Add handling string pattern
2019-06-25 17:08:42 -07:00
Kamil Pajdzik
5f3395fb8d
Update tests to include Pattern constraint
2019-06-25 16:47:13 -07:00
Dan Schulte
790de0fa2e
Fix serialization bug for ie11
2018-12-26 10:35:17 -08:00
Kamil Pajdzik
120e3f553b
Add deserializing missing properties ( #289 )
...
* Boostrap LRO deserialization tests
* Add new test
* Reset everything to master
* Handling edge cases
* Add support for header collection prefix
* Fix nested deserialization
* Remove unnecessary method
* Address PR comments
* Change way of saving handled properties
* Change way of saving handled properties
* Remove unnecessary method
* Bump the version
2018-12-03 20:11:31 -08:00
Kamil Pajdzik
91fce83166
Fix (de)serializing polymorphic elements in an array ( #262 )
...
* Prepare additional test case
* Fix array element's name
* Fix serializing polymorphic elements in array
* Address code review comments
2018-11-07 10:55:35 -08:00
Kamil Pajdzik
059c685e07
Fix deserializing nested composite types with no polymorphic discriminator specified ( #258 )
2018-11-05 13:55:00 -08:00
Dan Schulte
33a44e4dcb
Apply ignore headers scenario to numbers
2018-10-17 09:30:42 -07:00
Dan Schulte
c8ed724a4c
Ignore XML headers when deserializing XML elements with headers and text
2018-10-16 18:49:18 -07:00
Rikki Gibson
99216ae495
Tolerate unknown/missing polymorphic discriminators ( #225 )
...
* Tolerate unknown/missing polymorphic discriminators
* Automatically populate missing discriminator property
2018-09-12 14:41:14 -07:00
Rikki Gibson
ed41e39d6e
Simplify polymorphic serialization ( #222 )
...
* remove old version of polymorphic discriminator
* reduce some null/undefined checks
* Further condense getPolymorphicMapper
* Remove string polymorphic discriminator test
2018-09-11 15:04:02 -07:00
Rikki Gibson
98aba6036b
Add additional properties support to serializer ( #219 )
2018-09-10 13:44:24 -07:00
Abhishek Goenka
0de30867dd
Avoid split for undefined objects
2018-09-05 07:32:45 +05:30
Rikki Gibson
5bd7b67e4d
Mapper interfaces ( #180 )
...
* Update mapper type definitions
* Fix tests
* Fix CompositeType className and modelProperties
* Bump to v0.17.0
2018-07-31 13:08:24 -07:00
Rikki Gibson
090a2093aa
Fall back to serializedName when deserializing property in XML mode
2018-07-10 12:16:51 -07:00
Dan Schulte
bcb3485947
Restructure some of documentation comments
2018-07-09 14:26:56 -07:00
Rikki Gibson
13da6db58b
Support x-nullable
2018-06-28 12:17:31 -07:00
Rikki Gibson
641308710b
more slimming
2018-06-22 09:25:46 -07:00
Rikki Gibson
2433e48034
Remove most usages of await
2018-06-22 09:25:46 -07:00
Rikki Gibson
5033d099be
Reduce size by 0.2 kB by using mangleable locals
2018-06-19 13:18:48 -07:00
Rikki Gibson
c15f040717
Clean up constraint validation
2018-06-19 13:09:51 -07:00
Rikki Gibson
9f07ebd6db
Improve type safety of mappers
2018-06-19 10:47:32 -07:00
Rikki Gibson
405c245ddc
Add headerCollectionPrefix [de]serialization
2018-06-18 14:58:26 -07:00
Rikki Gibson
2ae0ad5cfb
Make Serializer properties read only
2018-06-14 14:23:12 -07:00
Rikki Gibson
21d161c544
Update serializer.ts to use closure over functions instead of private members
2018-06-14 14:19:47 -07:00
Dan Schulte
9576d342a1
All generator tests pass
2018-06-14 13:30:31 -07:00
Rikki Gibson
3f497185a5
Remove usages of Buffer from ms-rest-js
2018-06-01 18:03:24 -07:00
Dan Schulte
388bf7f237
Resolving PR comments
2018-05-31 15:31:45 -07:00
Dan Schulte
cc1145cb3b
Working on refactoring mapper generation
2018-05-31 12:51:44 -07:00
Rikki Gibson
3449be8235
Fix handling of stream request bodies
2018-05-25 12:37:24 -07:00
Rikki Gibson
fe494789b6
Always parse numbers and booleans in serializer
2018-05-23 12:47:47 -07:00
Dan Schulte
8d32942b44
Move strEnum() function to serializer.ts
2018-05-23 09:50:08 -07:00
Rikki Gibson
7bd6af8ffb
Add isDuration(string) function. Remove traces of moment.
2018-05-03 14:29:31 -07:00
Rikki Gibson
91a6ec1921
Replace momentjs with simple duration format test. Tweak webpack config.
2018-05-03 10:27:02 -07:00
Rikki Gibson
aa8fd5c108
Fixes from review feedback
2018-04-02 16:44:07 -07:00
Rikki Gibson
707303e2f9
Add workaround for empty non-wrapped XML lists. Allow "== undefined".
2018-04-02 16:44:07 -07:00
Rikki Gibson
64a82bae69
Only parse numbers and booleans when deserializing XML
2018-04-02 16:44:07 -07:00
Rikki Gibson
22bd9a3d13
Cleanup
2018-04-02 16:44:07 -07:00
Rikki Gibson
3c5dcbdd9d
Safe unwrapping of wrapped list. Parse numbers and booleans.
2018-04-02 16:44:07 -07:00
Rikki Gibson
97d6b9980a
Move force-arraying from composite to sequence deserialization
2018-04-02 16:44:07 -07:00
Rikki Gibson
80ed8578a5
Cleanup syntax for wrapping list
2018-04-02 16:44:07 -07:00
Rikki Gibson
ada3e1970e
Handle empty wrapped list case
2018-04-02 16:44:07 -07:00
Rikki Gibson
4a81be8ab9
Handle empty list cases
2018-04-02 16:44:07 -07:00
Rikki Gibson
6561b57141
Serialize wrapped lists
2018-04-02 16:44:07 -07:00
Rikki Gibson
9b69ab1f45
add stringifyXML function, deserialize wrapped lists
2018-04-02 16:44:07 -07:00
Rikki Gibson
da728b9512
Fix comparison bug and remove isArray check
2018-04-02 16:44:07 -07:00
Rikki Gibson
d329bfd59a
Add xml2js dependency and basic deserialization support
2018-04-02 16:44:07 -07:00