diff --git a/lib/open_api_spex.ex b/lib/open_api_spex.ex index 9db3db9d..9ed88601 100644 --- a/lib/open_api_spex.ex +++ b/lib/open_api_spex.ex @@ -306,7 +306,7 @@ defmodule OpenApiSpex do body |> Map.delete(:__struct__) |> update_in([:"x-struct"], fn struct_module -> - if Keyword.get(opts, :struct?, true) do + if Keyword.get(opts, :struct?, false) do struct_module || module else struct_module