diff --git a/models/Odmdb.js b/models/Odmdb.js index b0409bc..6f3aa21 100644 --- a/models/Odmdb.js +++ b/models/Odmdb.js @@ -253,7 +253,7 @@ Odmdb.Schema = (objectPathname, validschema, lg="en") => { if (!fs.existsSync(optionsfile)){ res.status = 404; res.msg = "missingref"; - res.data.missingref = res.data.schema.properties[p]["$ref"]; + res.data.missingref = res.data.schema.properties[p].options["$ref"]; return res; }else{ if (!res.data.schema.apxref) {res.data.schema.apxref=[]}