u/laDouchee

5,375 post karma · 1,272 comment karma · joined Dec 2014 · moderator

laDouchee

sorry mate. my attention span is very low these days. will look at your requirement in detail as soon as I get some downtime.

also just wanna mention that I presented ardalis the extension method I came up with above, and he agrees that would be the way to go about it. see his reply here: https://discord.com/channels/933662816458645504/1135456772031774850/1135568424546873458

off the top of my head, the reason you're having trouble with just returning the ardalis.result is because STJ doesn't know how to serialize it out of the box I guess. it needs some sort of handling/transformation which is what the extension method does.

from the perspective of FE as a library its not feasible to build support in for third-party union types.

as far as I can tell, ardalis.result doesn't work with even minimal apis without those translation/transformation extension methods right?

if it does, can you show me a repro in minimal apis?

also I'd appreciate it if we could continue this convo over at either discord or github.

cheers!

laDouchee

I will if you piss off 🤪

laDouchee
laDouchee