Skip to content

Commit d6041cc

Browse files
committed
pkgs-lib/hocon: fix type for _includes
1 parent f6089db commit d6041cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/pkgs-lib/formats/hocon/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,13 @@ in
113113
path
114114
str
115115
]);
116+
117+
includeType = addCheck attrs (x: (x._type or null) == "include");
116118
in
117119
(oneOf [
118120
atomType
119-
(listOf atomType)
121+
(addCheck (listOf atomType) (lib.all atomType.check))
122+
(addCheck (listOf includeType) (lib.all includeType.check))
120123
(attrsOf type')
121124
])
122125
// {

0 commit comments

Comments
 (0)