No validation of field until schema is complete ?
Hello,
I am an experienced developer, unfortunately not experienced in TypeScript. I am in the process of learning, so sorry if this is trivial.
I am trying to set up a form for a entity whose schema varies on some
Here is a minimal way to reproduce:
The errors only show the fact that
Is this the wrong way to have discriminated unions ?
I am an experienced developer, unfortunately not experienced in TypeScript. I am in the process of learning, so sorry if this is trivial.
I am trying to set up a form for a entity whose schema varies on some
type field. I think I have found a way to express this in Arktype, but the validation doesn't seem to work as intended.Here is a minimal way to reproduce:
The errors only show the fact that
type is wrong, but won't tell a thing about the name being incorrect.Is this the wrong way to have discriminated unions ?