From 98bfe2b8cbae1e402e19bf84dc3adbc632ce903e Mon Sep 17 00:00:00 2001 From: Elizabeth Worstell Date: Fri, 12 Jul 2024 10:30:20 -0700 Subject: [PATCH] feat: remove verb naming error added this in because we had it in the legacy extractor in a PR that was missed, but not sure about the rationale so would like to discuss before updating downstream customers to comply --- go-runtime/schema/verb/analyzer.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/go-runtime/schema/verb/analyzer.go b/go-runtime/schema/verb/analyzer.go index 7bcad54d71..07906f3ddb 100644 --- a/go-runtime/schema/verb/analyzer.go +++ b/go-runtime/schema/verb/analyzer.go @@ -63,12 +63,6 @@ func Extract(pass *analysis.Pass, root *ast.FuncDecl, obj types.Object) optional } func checkSignature(pass *analysis.Pass, node *ast.FuncDecl, sig *types.Signature) (req, resp optional.Option[*types.Var]) { - if expVerbName := strcase.ToUpperCamel(node.Name.Name); node.Name.Name != expVerbName { - common.Errorf(pass, node, "unexpected verb name %q, did you mean to use %q instead?", node.Name.Name, - expVerbName) - return optional.None[*types.Var](), optional.None[*types.Var]() - } - params := sig.Params() results := sig.Results() if params.Len() > 2 {