Skip to content

Commit

Permalink
Avoid unwrapping array types in typespecs
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-foster committed Jan 4, 2024
1 parent 11ed134 commit 1c84eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/open_api/renderer/operation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ defmodule OpenAPI.Renderer.Operation do

opts = quote(do: keyword)

arguments = Util.clean_list([path_parameters, request_body, opts])
arguments = path_parameters ++ Enum.reject([request_body, opts], &is_nil/1)
return_type = render_return_type(state, responses)

quote do
Expand Down

0 comments on commit 1c84eea

Please sign in to comment.