Tom
Aarktype
•Created by Tom on 2/13/2025 in #questions
can `optional()` be used with a thunk?
I haven't managed to reduce this down to a simple example yet, maybe I'll do that so I can understand what's going on
5 replies
Aarktype
•Created by Tom on 2/13/2025 in #questions
can `optional()` be used with a thunk?
yeah, sort of. I was doing that originally, but started getting
An unordered union of a type including a morph and a type with overlapping input is indeterminate
. But now I think about it, I suspect I would probably get the same issue even with .optional()
?5 replies
Aarktype
•Created by Tom on 1/7/2025 in #questions
Can arktype drop data not covered by schema?
actually, thinking about it, I think I always want
"+": "delete",
, this is already the behaviour of the equivalent pydantic models so that's fine8 replies
Aarktype
•Created by Tom on 1/7/2025 in #questions
Can arktype drop data not covered by schema?
so I mostly want to do this for a test; I want to load in some example data, have it return everything it was sensitive to, and check that it matches the input in certain cases. Is there a runtime way of enabling this?
8 replies
Aarktype
•Created by Tom on 1/7/2025 in #questions
Can arktype drop data not covered by schema?
ooh, thanks! I'll have a play with that
8 replies