Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@
*/
public class ApiConfigValidator {
private static final Logger log = Logger.getLogger(ApiConfigValidator.class.getName());
// The underscore is allowed in the API name because of very old legacy reasons, despite the
// annotation documentation stating otherwise.
private static final Pattern API_NAME_PATTERN = Pattern.compile(
"^[a-z]+[A-Za-z0-9]*$");
"^[a-z]+[A-Za-z0-9_]*$");

private static final Pattern API_METHOD_NAME_PATTERN = Pattern.compile(
"^\\w+(\\.\\w+)*$");
Expand Down