function validateSupportedVersion(version) {
  if (!version) {
    return false;
  }
  let isValid = [DEFAULT_SPEC_VERSION, VERSION_3_1, SWAGGER_VERSION].find((supportedVersion) => {
    return compareVersion(version, supportedVersion);
  });
  return isValid !== undefined;
}
Validates if the input version is valid
@param {string} version The current spec version
@returns {boolean} True if the current version is supported