fix: preserve multi-type type union when schema has subschemas (#954)
#1001
+1,029
−3
type union when schema has subschemas (#954)
#1001