@angelmunoz content in the fediverse

Home
@alexzeitler@mastodon.social I ...

TIL if a JSON property of an object has the wron...

@TIL if a JS...

TIL if a JSON property of an object has the wrong type, #aspnetcore model binding silently fails and doesn't create an instance at all.

Doesn't make sense to me but I might be wrong.

Repro - expect an int, send a string 🔥

@alexzeitler@mastodon.social I have memory glimpses of this in the other site =, someone from the team mentioned that binding was not the same as validation and rather than throwing exceptions there which could be costly (if aspnet did it so they left it to userland) it would just not bind that was more-less the reasoning.

pick that with a grain of salt as I can'f find the tweets