code: func (m *DefaultRESTMapper) ResourceIsValid(resource unversioned.GroupVersionResource) bool {
  	_, err := m.KindFor(resource)
  	return err == nil
  }
docs: // ResourceIsValid takes a partial resource and checks if it's valid