zero icon indicating copy to clipboard operation
zero copied to clipboard

server function does not receive a typed object

Open foofel opened this issue 2 years ago • 1 comments

Hey, when i try to pass an object from the client to the server i get the correct data, but its not a typed object but dict, how can i change this?

foofel avatar Oct 17 '23 15:10 foofel

What type of object are you sending? And are you expecting object in the server or client?

Ananto30 avatar Oct 18 '23 18:10 Ananto30

My first impression was to not doing any validation on the framework itself. But as I have introduced msgspec, can use their validator function indeed. Here is the pr - https://github.com/Ananto30/zero/pull/55

Ananto30 avatar Jun 26 '24 17:06 Ananto30

Solved here https://github.com/Ananto30/zero/pull/55

Ananto30 avatar Jun 29 '24 09:06 Ananto30