diff --git a/modules/openapi-generator/src/main/resources/r/modelEnum.mustache b/modules/openapi-generator/src/main/resources/r/modelEnum.mustache index c0dc60149aa1..98933a265c2d 100644 --- a/modules/openapi-generator/src/main/resources/r/modelEnum.mustache +++ b/modules/openapi-generator/src/main/resources/r/modelEnum.mustache @@ -30,9 +30,6 @@ stop("Use one of the valid values: ", paste0(enumvec, collapse = ", ")) } - warning("Initializing {{{classname}}} with DUMMY_ENUM. Use one of the valid values: ", - paste0(enumvec, collapse = ", "), - ". If you did not manually initialize {{{classname}}}, this may already be overwritten by an enum loaded from a JSON config.") } private$value <- val }, diff --git a/samples/client/echo_api/r/R/string_enum_ref.R b/samples/client/echo_api/r/R/string_enum_ref.R index ee9afe6cf4a1..1cd22b860337 100644 --- a/samples/client/echo_api/r/R/string_enum_ref.R +++ b/samples/client/echo_api/r/R/string_enum_ref.R @@ -29,9 +29,6 @@ StringEnumRef <- R6::R6Class( stop("Use one of the valid values: ", paste0(enumvec, collapse = ", ")) } - warning("Initializing StringEnumRef with DUMMY_ENUM. Use one of the valid values: ", - paste0(enumvec, collapse = ", "), - ". If you did not manually initialize StringEnumRef, this may already be overwritten by an enum loaded from a JSON config.") } private$value <- val },