Commit 43dc2e65 authored by Jérome Perrin's avatar Jérome Perrin

expandSchema: fix references definitions

parent 4441a9db
...@@ -420,7 +420,8 @@ ...@@ -420,7 +420,8 @@
if (referenced.$ref) { if (referenced.$ref) {
referenced = expandSchema( referenced = expandSchema(
full_schema.class_definition[ full_schema.class_definition[
referenced.$ref.substr(1, referenced.$ref.length) // 2 here is for #/
referenced.$ref.substr(2, referenced.$ref.length)
], ],
full_schema); 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