function getVersionByStringInput(version) {
  if (!version) {
    return false;
  }
  let found = [DEFAULT_SPEC_VERSION, SWAGGER_VERSION, VERSION_3_1].find((supportedVersion) => {
    return compareVersion(version, supportedVersion);
  });
  return found;
}
Gets the named version constant from an string input
@param {string} version The spec version we are bundling
@returns {string} The constant version