Comments (5)
The library expect users to type it as { foo:Null<String> }
because typecrawler has the nullable
branch, no?
from tink_json.
Well, yeah. In this case I just had "unsafe" data that contained a null
and the writer simply wrote it out. Not sure how to handle it, but ideally the the error would surface during serialization.
from tink_json.
Wouldn't this be "solved" by enabling null safety?
from tink_json.
Well, the null
came from haxe.Json.parse(something)
. It might just as well be a database field or something. Perhaps for my case it would be sufficient to run tink_validation
over the data, but I still wanna measure what the cost of checking in the writer might be. Maybe it's not even noticeable, otherwise it can be flagged.
from tink_json.
Hmm. I think in the end it's the user's responsibility to validate the data (via tink_validation or whatever).
from tink_json.
Related Issues (20)
- Writer tracks `__first` in anonymous objects even when there are no optional fields.
- [nodejs] strange parser performance HOT 3
- from/to + representation HOT 1
- Field parsing should use some sort of state machine.
- Add validationless mode.
- Support child class / interface implementations
- Allow final class fields to be serialized? HOT 2
- Support guards in @:jsonParse
- haxe 4.2 nightly build bug. HOT 1
- Dynamic parser references and type parameters HOT 2
- Support GADT?
- State machine bug?
- parse() broken for Haxe 4 HOT 2
- Allow open enum abstracts
- GenReader fails when enum abstract is inited with enum abstract values
- `DynamicAccess<T>` does not seem to honor `@:jsonParse` defined on the concrete type substituted for `T`
- Allow parsing final @:structInit classes.
- Roundtrip of an enum doesn't work if one of the enum parameters is a haxe.ds.Option HOT 4
- tink_json cannot stringify cpp.CastCharStar
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 tink_json.