cerialize
cerialize copied to clipboard
Easy serialization through ES7/Typescript annotations
Usually when using JSON REST API error response contain dictionary where keys are the same as model's keys, but values are error messages. For example ```python export class User {...
Hey @weichx Plz chkout mbox lib for state management eg. https://jsfiddle.net/mweststrate/wv3yopo0/ If my object is mobx observer the `Serialize` fails due to ``` RangeError: Maximum call stack size exceeded ```...
I noticed that when there's a circular reference in an entity, it will cause @autoSerializeAs on a child field to fail. However, this is silent. It would be great if...
I'm debugging the following error. TypeError: decorator is not a function at DecorateProperty (/Users/jmurphy/projects/ubq/api/node_modules/reflect-metadata/Reflect.js:530:29) at Object.decorate (/Users/jmurphy/projects/ubq/api/node_modules/reflect-metadata/Reflect.js:100:20) at __decorate (/Users/jmurphy/projects/ubq/api/dist/src/ubq/dtos/lens.dto.js:4:92) at Object. (/Users/jmurphy/projects/ubq/api/dist/src/ubq/dtos/lens.dto.js:73:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at...
There is a bug with the Deserialize method for IE11, it fails to parse "0001-01-01T00:00:00.000Z" dates and returns Invalid Date/null. Example code: ``` class MyObject { @autoserialize public name: string;...
Hello, I have been using cerialize for a while, and I am generally very satisfied. It does have some funky behaviors that you will have to learn to use it...
I'm attempting to use GenericDeserializeInto to merge A and B where certain fields on A have the exact same values of object B, both B has some newer fields. Result:...
I had to change ``` if (metadata.deserializedType && typeof (metadata.deserializedType).Deserialize === "function") { instance[keyName] = (metadata.deserializedType).Deserialize(source); } ``` TO ``` if (metadata.deserializedType && typeof (metadata.deserializedType).Deserialize === "function") { instance[keyName] =...
It would be great if we could have a decorator that allowed use to mark a paramater as required during serialize/deserialize/auto This would allow us to ensure that the contract...