Commit 14a537d0 authored by Jérome Perrin's avatar Jérome Perrin Committed by Ioannis Papagiannopoulos

expandSchema: fix references definitions

parent 67d67307
......@@ -420,7 +420,8 @@
if (referenced.$ref) {
referenced = expandSchema(
full_schema.class_definition[
referenced.$ref.substr(1, referenced.$ref.length)
// 2 here is for #/
referenced.$ref.substr(2, referenced.$ref.length)
],
full_schema);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment