"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.buildResponseTree = void 0;

var buildResponseTree = responses => {
  var tree = {};
  Object.values(responses).forEach(response => {
    var node = "".concat(response.statusCode, ": ").concat(response.description);
    if (!(node in tree)) tree[node] = {};
    tree[node][response.mediaType] = response;
  });
  return tree;
};

exports.buildResponseTree = buildResponseTree;
//# sourceMappingURL=utils.js.map