lib jsonschema: add path
This commit is contained in:
@@ -7,6 +7,7 @@ let
|
|||||||
float = "number";
|
float = "number";
|
||||||
int = "integer";
|
int = "integer";
|
||||||
str = "string";
|
str = "string";
|
||||||
|
path = "string"; # TODO add prober path checks
|
||||||
};
|
};
|
||||||
|
|
||||||
# remove _module attribute from options
|
# remove _module attribute from options
|
||||||
@@ -103,6 +104,13 @@ rec {
|
|||||||
type = "string";
|
type = "string";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# parse string
|
||||||
|
else if option.type.name == "path"
|
||||||
|
# return jsonschema property definition for path
|
||||||
|
then default // description // {
|
||||||
|
type = "string";
|
||||||
|
}
|
||||||
|
|
||||||
# parse enum
|
# parse enum
|
||||||
else if option.type.name == "enum"
|
else if option.type.name == "enum"
|
||||||
# return jsonschema property definition for enum
|
# return jsonschema property definition for enum
|
||||||
|
|||||||
Reference in New Issue
Block a user