arcs icon indicating copy to clipboard operation
arcs copied to clipboard

Generalize parsing of schema field types

Open shans opened this issue 4 years ago • 0 comments

(from b/157522096)

A lot of types in the schema are needlessly strict - for example CollectionType only allows PrimitiveType or KotlinType as the inner type; UnionType only allows PrimitiveTypes to be unioned.

Part of this is probably to avoid awkwardness ([[Long]] isn't something we can handle yet) but we shouldn't be detecting this at the parsing stage. Unless there's a really good reason for it, we should recurse back to the top level SchemaType production where possible.

shans avatar Apr 26 '21 23:04 shans