kerubistan / kerub

A lightweight IaaS prototype
Apache License 2.0
13 stars 4 forks source link

nulls injected through json #205

Open K0zka opened 7 years ago

K0zka commented 7 years ago

while nulls are not expected on the server, they can be injected through json https://twitter.com/kozka/status/854439819216396288

this would be great if jackson could handle this, but it is "wontfix" https://github.com/FasterXML/jackson-module-kotlin/issues/27

andreichernovgxb commented 7 years ago

Hi, what is your solution of this case at the moment? Are you use as temporary solution from FasterXML/jackson-module-kotlin#27

ensure your source JSON is true, or call filterNotNullI()

or something another?

K0zka commented 7 years ago

@andreichernovgxb I have no solution yet (bug open), but I'd prefer to have a solution from the serialization.deserialization component rather than having some additional validation

K0zka commented 3 years ago

Looks like jackson 2.12 will have a new flag to enforce strict null safety.