[api] reuse valid_project_name to unpanic reviewers