diff --git a/autorest/codegen/__init__.py b/autorest/codegen/__init__.py index 31eac0f1f1f..a3ece33e310 100644 --- a/autorest/codegen/__init__.py +++ b/autorest/codegen/__init__.py @@ -92,6 +92,12 @@ def _validate_code_model_options(options: Dict[str, Any]) -> None: "Please remove --reformat-next-link from your call for version tolerant generations." ) + if options["multiapi"] and options["version_tolerant"]: + raise ValueError( + "Can not currently generate version tolerant multiapi SDKs. " + "We are working on creating a new multiapi SDK for version tolerant and it is not available yet." + ) + _LOGGER = logging.getLogger(__name__) class CodeGenerator(Plugin): @staticmethod