pkgs-lib/hocon: fix type for _includes

This commit is contained in:
h7x4 2025-03-24 21:21:34 +01:00
parent f6089dbf47
commit d6041cc2ca
No known key found for this signature in database
GPG key ID: 9F2F7D8250F35146

View file

@ -113,10 +113,13 @@ in
path
str
]);
includeType = addCheck attrs (x: (x._type or null) == "include");
in
(oneOf [
atomType
(listOf atomType)
(addCheck (listOf atomType) (lib.all atomType.check))
(addCheck (listOf includeType) (lib.all includeType.check))
(attrsOf type')
])
// {