pojoAdapter = (normalizeFn) => (spec) => {
  const openApiElement = OpenApi3_1Element.refract(spec);
  openApiElement.classes.push('result');

  const normalized = normalizeFn(openApiElement);
  const value = toValue(normalized);

  /**
   * We're setting the cache here to avoid repeated refracting
   * in `openapi-3-1-apidom` strategy resolve method.
   */
  resolveOpenAPI31Strategy.cache.set(value, normalized);

  return toValue(normalized);
}
This adapter allow to perform normalization on Plain Old JavaScript Objects.
The function adapts the `normalize` function interface and is able to accept
Plain Old JavaScript Objects and returns Plain Old JavaScript Objects.