3 ms·
Then you don't use the discriminated union for that endpoint, but the schema that only accepts moderator user objects. That's not surprising, "this endpoint wi
by Scarblac 1y ago
Then you don't use the discriminated union for that endpoint, but the schema that only accepts moderator user objects.
That's not surprising, "this endpoint will only return moderator user objects" is a bit of knowledge that has to be represented in code somehow.