Skip to content

Commit b7580fe

Browse files
committed
fix: honor skip_unknown option in spec table generator
1 parent 36a11ef commit b7580fe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/resource_generator/resource_generator.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ if Code.ensure_loaded?(Igniter) do
3737

3838
specs =
3939
repos
40-
|> Enum.flat_map(&Spec.tables(&1, skip_tables: opts[:skip_tables], tables: opts[:tables]))
40+
|> Enum.flat_map(
41+
&Spec.tables(&1,
42+
skip_tables: opts[:skip_tables],
43+
tables: opts[:tables],
44+
skip_unknown: opts[:skip_unknown]
45+
)
46+
)
4147
|> Enum.map(fn %{table_name: table} = spec ->
4248
resource =
4349
table

0 commit comments

Comments
 (0)