docs: async function dereferencePackageDescriptor(descriptor, basePath) {
    descriptor = cloneDeep(descriptor)
    for (const [index, resource] of (descriptor.resources || []).entries()) {
      // TODO: May be we should use Promise.all here
      descriptor.resources[index] = await dereferenceResourceDescriptor(
          resource, basePath, descriptor)
    }
    return descriptor
  }