Anonymous structs are flattened json-style. buildSchemaFields checks that fields aren't duplicated.