Open amills-vibeirl opened 10 months ago
bruh, no
It's been awhile since I filed this ticket, but looks like I am trying to validate an object before converting to json. Seems reasonable. But if it's more performant to validate after json, etc, then I am fine with that, just seems like an extra step
or the library would convert to json for us, by default. either way.
the main workflow looks like this right now:
but it should look like this instead:
If you are accepting JSON and than Unmarshaling it back to a struct, that's a waste of resources. But I would have to inspect the implementation.