From e3e2753b5bc7154bf2320e6cfac0c1b461d0348b Mon Sep 17 00:00:00 2001 From: Gabriel Roldan Date: Thu, 21 May 2026 17:44:20 -0300 Subject: [PATCH] Restore struct? default to false to suppress x-struct population The upstream sync (#4, through v3.22.3) reverted the ActiveProspect fork patch that defaulted :struct? to false in build_schema/2, causing the x-struct vendor extension to be auto-populated with module names in generated specs. This restores the prior behavior. --- lib/open_api_spex.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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