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