This doesn't seem correct. I'm thinking that we should add all of the node types to the `pendingTypes` map before we do any validation. It seems like the change above is just ignoring some of the validation requirements; e.g., a require type might not be found at all.