Skip to content

Commit

Permalink
fix!: operation name
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Aug 22, 2024
1 parent 44cf0e4 commit 3f52a9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mix/tasks/generate.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Mix.Tasks.Stripe.Generate do
@moduledoc "The hello mix task: `mix help hello`"
@moduledoc "The hello mix task: `mix stripe.generate`"
use Mix.Task

def run(_) do
Expand Down
2 changes: 1 addition & 1 deletion lib/openapi/phases/compile.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3f52a9b

Please sign in to comment.