diff --git a/lib/openapi/phases/compile.ex b/lib/openapi/phases/compile.ex index 54b19953b..ce5763736 100644 --- a/lib/openapi/phases/compile.ex +++ b/lib/openapi/phases/compile.ex @@ -48,7 +48,7 @@ defmodule Stripe.OpenApi.Phases.Compile do end end) - function_name = String.to_atom(operation["method_name"]) + function_name = String.to_atom(Macro.underscore(operation_definition.id)) success_response_spec = return_spec(operation_definition.success_response)