lib jsonschema: add path
This commit is contained in:
parent
c487280ba9
commit
acf1c0b87a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user