Merge pull request 'lib/instrospection: Skip either(oneOf)' (#5422) from ke-introspection-either-or into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/5422
This commit is contained in:
@@ -149,6 +149,13 @@ let
|
|||||||
# TODO: Add index support in nixpkgs first
|
# TODO: Add index support in nixpkgs first
|
||||||
# else if type.name == "listOf" then
|
# else if type.name == "listOf" then
|
||||||
# handleListOf meta.list
|
# handleListOf meta.list
|
||||||
|
else if type.name == "either" then
|
||||||
|
# For either(oneOf) types, we skip introspection as we cannot
|
||||||
|
# determine which branch of the union was taken without more context
|
||||||
|
# This *should* be safe, as it can currently mostly be triggered through
|
||||||
|
# The `extraModules` setting of inventory modules and seems to be better
|
||||||
|
# than just aborting entirely.
|
||||||
|
{ }
|
||||||
else
|
else
|
||||||
throw "Yet Unsupported type: ${type.name}";
|
throw "Yet Unsupported type: ${type.name}";
|
||||||
in
|
in
|
||||||
|
|||||||
Reference in New Issue
Block a user