Right now, schema classes only support null as a union type. We don't generate a proper union type out of it. Other code generation tools actually generate a new class representing the union, e.g.
This should generate an "String" type that allows us to inspect which of the two are given. It should have both int and string attributes so we can retrieve them, and also a more generic value method to retrieve whichever one is set.
Right now, schema classes only support null as a union type. We don't generate a proper union type out of it. Other code generation tools actually generate a new class representing the union, e.g.
This should generate an "String" type that allows us to inspect which of the two are given. It should have both
int
andstring
attributes so we can retrieve them, and also a more genericvalue
method to retrieve whichever one is set.