code: function dedupeRefs(openapi, options) {
      for (let ref in options.refmap) {
          jptr.jptr(openapi,ref,{ $ref: options.refmap[ref] });
      }
  }
docs: /*
  This has to happen as a separate pass because multiple $refs may point
  through elements of the same path