浏览代码

refactor: dont store unneeded indirections

Sam Jaffe 1 年之前
父节点
当前提交
561bd5d24c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/jvalidate/schema.h

+ 1 - 0
include/jvalidate/schema.h

@@ -199,6 +199,7 @@ private:
     // to store it uniquely. Draft2019_09 supports directly extending a $ref schema
     // in the same schema, instead of requiring an allOf clause.
     if (node->is_pure_reference()) {
+      node = *node->reference_schema();
       cache_.erase(it);
       return alias(context.where, node);
     }