jsonschema: support mdDoc description

This commit is contained in:
DavHau
2023-11-21 17:29:06 +07:00
parent 9af58c7bac
commit f54ad0f739
2 changed files with 26 additions and 2 deletions

View File

@@ -39,6 +39,28 @@ in
};
};
testDescriptionIsAttrs =
let
evaledConfig = lib.evalModules {
modules = [{
options.opt = lib.mkOption {
type = lib.types.bool;
description = {
_type = "mdDoc";
text = description;
};
};
}];
};
in
{
expr = slib.parseOption evaledConfig.options.opt;
expected = {
type = "boolean";
inherit description;
};
};
testBool =
let
default = false;