lib jsonschema: add path

This commit is contained in:
lassulus 2023-09-14 10:37:16 +02:00 committed by Mic92
parent c487280ba9
commit acf1c0b87a

View File

@ -7,6 +7,7 @@ let
float = "number";
int = "integer";
str = "string";
path = "string"; # TODO add prober path checks
};
# remove _module attribute from options
@ -103,6 +104,13 @@ rec {
type = "string";
}
# parse string
else if option.type.name == "path"
# return jsonschema property definition for path
then default // description // {
type = "string";
}
# parse enum
else if option.type.name == "enum"
# return jsonschema property definition for enum