code: function searchForRefs (json, jsonPath, refs) {
    if (!_.isObject(json)) return
  
    const reference = json['$tymlyRef']
    if (reference) {
      verifyTymlyRefObject(json, jsonPath)
  
      refs.push({
        path: jsonPath,
        ref: reference
      })
  
      return refs
    } // if ...
  
    // nothing found, continue down the tree
    if (Array.isArray(json)) {
      json.forEach((sub, index) =>
        searchForRefs(sub, `${jsonPath}[${index}]`, refs)
      )
    } else if (_.isObject(json)) {
      Object.entries(json).forEach(([name, sub]) =>
        searchForRefs(sub, `${jsonPath}.${name}`, refs)
      )
    }
  
    return refs
  }
docs: findTymlyRefs