Skip to content
Snippets Groups Projects
Commit 0307d133 authored by Alvaro Cabrera Durán's avatar Alvaro Cabrera Durán
Browse files

Skip types if jsonPath is given; fixes #299

parent 4c0a3e15
Branches
Tags
No related merge requests found
......@@ -54,6 +54,11 @@ function traverse(schema, path, resolve, rootSchema) {
return utils.typecast(null, schema, () => schema.generate(rootSchema));
}
// short-circuit as we don't plan generate more values!
if (schema.jsonPath) {
return schema;
}
// TODO remove the ugly overcome
let type = schema.type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment