diff --git a/modules/openapi-generator/src/main/resources/powershell/model_simple.mustache b/modules/openapi-generator/src/main/resources/powershell/model_simple.mustache index 8596a35858c..3be17185244 100644 --- a/modules/openapi-generator/src/main/resources/powershell/model_simple.mustache +++ b/modules/openapi-generator/src/main/resources/powershell/model_simple.mustache @@ -88,7 +88,7 @@ function Initialize-{{{apiNamePrefix}}}{{{classname}}} { {{/maxLength}} {{#minLength}} if ({{^required}}!${{{name}}} -and {{/required}}${{{name}}}.length -lt {{{minLength}}}) { - throw "invalid value for '{{{name}}}', the character length must be great than or equal to {{{minLength}}}." + throw "invalid value for '{{{name}}}', the character length must be greater than or equal to {{{minLength}}}." } {{/minLength}} @@ -148,7 +148,7 @@ function Initialize-{{{apiNamePrefix}}}{{{classname}}} { {{/maxLength}} {{#minLength}} if ({{^required}}!${{{name}}} -and {{/required}}${{{name}}}.length -lt {{{minLength}}}) { - throw "invalid value for '{{{name}}}', the character length must be great than or equal to {{{minLength}}}." + throw "invalid value for '{{{name}}}', the character length must be greater than or equal to {{{minLength}}}." } {{/minLength}} diff --git a/modules/openapi-generator/src/main/resources/ruby-client/api.mustache b/modules/openapi-generator/src/main/resources/ruby-client/api.mustache index f33530dde30..0493c6200fa 100644 --- a/modules/openapi-generator/src/main/resources/ruby-client/api.mustache +++ b/modules/openapi-generator/src/main/resources/ruby-client/api.mustache @@ -131,7 +131,7 @@ module {{moduleName}} {{/maxLength}} {{#minLength}} if @api_client.config.client_side_validation && {{^required}}!opts[:'{{{paramName}}}'].nil? && {{/required}}{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:'{{{paramName}}}']{{/required}}.to_s.length < {{{minLength}}} - fail ArgumentError, 'invalid value for "{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:"{{{paramName}}}"]{{/required}}" when calling {{classname}}.{{operationId}}, the character length must be great than or equal to {{{minLength}}}.' + fail ArgumentError, 'invalid value for "{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:"{{{paramName}}}"]{{/required}}" when calling {{classname}}.{{operationId}}, the character length must be greater than or equal to {{{minLength}}}.' end {{/minLength}} diff --git a/modules/openapi-generator/src/main/resources/ruby-client/partial_model_generic.mustache b/modules/openapi-generator/src/main/resources/ruby-client/partial_model_generic.mustache index 75f40c419b1..930f3459a57 100644 --- a/modules/openapi-generator/src/main/resources/ruby-client/partial_model_generic.mustache +++ b/modules/openapi-generator/src/main/resources/ruby-client/partial_model_generic.mustache @@ -185,7 +185,7 @@ {{/maxLength}} {{#minLength}} if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}}.to_s.length < {{{minLength}}} - invalid_properties.push('invalid value for "{{{name}}}", the character length must be great than or equal to {{{minLength}}}.') + invalid_properties.push('invalid value for "{{{name}}}", the character length must be greater than or equal to {{{minLength}}}.') end {{/minLength}} @@ -318,7 +318,7 @@ {{/maxLength}} {{#minLength}} if {{#isNullable}}!{{{name}}}.nil? && {{/isNullable}}{{{name}}}.to_s.length < {{{minLength}}} - fail ArgumentError, 'invalid value for "{{{name}}}", the character length must be great than or equal to {{{minLength}}}.' + fail ArgumentError, 'invalid value for "{{{name}}}", the character length must be greater than or equal to {{{minLength}}}.' end {{/minLength}} diff --git a/samples/client/petstore/powershell/src/PSPetstore/Model/FormatTest.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Model/FormatTest.ps1 index b0202bf0773..9bce8a95f8a 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Model/FormatTest.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Model/FormatTest.ps1 @@ -172,7 +172,7 @@ function Initialize-PSFormatTest { } if ($Password.length -lt 10) { - throw "invalid value for 'Password', the character length must be great than or equal to 10." + throw "invalid value for 'Password', the character length must be greater than or equal to 10." } diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb index 1d7609d2f01..0a7729c304c 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb @@ -952,7 +952,7 @@ module Petstore end if @api_client.config.client_side_validation && !opts[:'password'].nil? && opts[:'password'].to_s.length < 10 - fail ArgumentError, 'invalid value for "opts[:"password"]" when calling FakeApi.test_endpoint_parameters, the character length must be great than or equal to 10.' + fail ArgumentError, 'invalid value for "opts[:"password"]" when calling FakeApi.test_endpoint_parameters, the character length must be greater than or equal to 10.' end # resource path diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/format_test.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/format_test.rb index 324def41c17..47e9dae6378 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/format_test.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/format_test.rb @@ -269,7 +269,7 @@ module Petstore end if @password.to_s.length < 10 - invalid_properties.push('invalid value for "password", the character length must be great than or equal to 10.') + invalid_properties.push('invalid value for "password", the character length must be greater than or equal to 10.') end pattern = Regexp.new(/^\d{10}$/) @@ -448,7 +448,7 @@ module Petstore end if password.to_s.length < 10 - fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 10.' + fail ArgumentError, 'invalid value for "password", the character length must be greater than or equal to 10.' end @password = password diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb index 1d7609d2f01..0a7729c304c 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb @@ -952,7 +952,7 @@ module Petstore end if @api_client.config.client_side_validation && !opts[:'password'].nil? && opts[:'password'].to_s.length < 10 - fail ArgumentError, 'invalid value for "opts[:"password"]" when calling FakeApi.test_endpoint_parameters, the character length must be great than or equal to 10.' + fail ArgumentError, 'invalid value for "opts[:"password"]" when calling FakeApi.test_endpoint_parameters, the character length must be greater than or equal to 10.' end # resource path diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/format_test.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/format_test.rb index 324def41c17..47e9dae6378 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/format_test.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/format_test.rb @@ -269,7 +269,7 @@ module Petstore end if @password.to_s.length < 10 - invalid_properties.push('invalid value for "password", the character length must be great than or equal to 10.') + invalid_properties.push('invalid value for "password", the character length must be greater than or equal to 10.') end pattern = Regexp.new(/^\d{10}$/) @@ -448,7 +448,7 @@ module Petstore end if password.to_s.length < 10 - fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 10.' + fail ArgumentError, 'invalid value for "password", the character length must be greater than or equal to 10.' end @password = password diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb index 23c50f4d61b..4e29e8b6e88 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb @@ -1033,7 +1033,7 @@ module Petstore end if @api_client.config.client_side_validation && !opts[:'password'].nil? && opts[:'password'].to_s.length < 10 - fail ArgumentError, 'invalid value for "opts[:"password"]" when calling FakeApi.test_endpoint_parameters, the character length must be great than or equal to 10.' + fail ArgumentError, 'invalid value for "opts[:"password"]" when calling FakeApi.test_endpoint_parameters, the character length must be greater than or equal to 10.' end # resource path diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/format_test.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/format_test.rb index 324def41c17..47e9dae6378 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/format_test.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/format_test.rb @@ -269,7 +269,7 @@ module Petstore end if @password.to_s.length < 10 - invalid_properties.push('invalid value for "password", the character length must be great than or equal to 10.') + invalid_properties.push('invalid value for "password", the character length must be greater than or equal to 10.') end pattern = Regexp.new(/^\d{10}$/) @@ -448,7 +448,7 @@ module Petstore end if password.to_s.length < 10 - fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 10.' + fail ArgumentError, 'invalid value for "password", the character length must be greater than or equal to 10.' end @password = password diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/inline_object3.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/inline_object3.rb index fef4fac9195..b9518d74b4d 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/inline_object3.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/inline_object3.rb @@ -251,7 +251,7 @@ module Petstore end if !@password.nil? && @password.to_s.length < 10 - invalid_properties.push('invalid value for "password", the character length must be great than or equal to 10.') + invalid_properties.push('invalid value for "password", the character length must be greater than or equal to 10.') end invalid_properties @@ -388,7 +388,7 @@ module Petstore end if !password.nil? && password.to_s.length < 10 - fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 10.' + fail ArgumentError, 'invalid value for "password", the character length must be greater than or equal to 10.' end @password = password diff --git a/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb index 13fe01d8df0..7dc22bc8df1 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb @@ -1033,7 +1033,7 @@ module Petstore end if @api_client.config.client_side_validation && !opts[:'password'].nil? && opts[:'password'].to_s.length < 10 - fail ArgumentError, 'invalid value for "opts[:"password"]" when calling FakeApi.test_endpoint_parameters, the character length must be great than or equal to 10.' + fail ArgumentError, 'invalid value for "opts[:"password"]" when calling FakeApi.test_endpoint_parameters, the character length must be greater than or equal to 10.' end # resource path diff --git a/samples/client/petstore/ruby/lib/petstore/models/format_test.rb b/samples/client/petstore/ruby/lib/petstore/models/format_test.rb index 324def41c17..47e9dae6378 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/format_test.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/format_test.rb @@ -269,7 +269,7 @@ module Petstore end if @password.to_s.length < 10 - invalid_properties.push('invalid value for "password", the character length must be great than or equal to 10.') + invalid_properties.push('invalid value for "password", the character length must be greater than or equal to 10.') end pattern = Regexp.new(/^\d{10}$/) @@ -448,7 +448,7 @@ module Petstore end if password.to_s.length < 10 - fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 10.' + fail ArgumentError, 'invalid value for "password", the character length must be greater than or equal to 10.' end @password = password diff --git a/samples/client/petstore/ruby/lib/petstore/models/inline_object3.rb b/samples/client/petstore/ruby/lib/petstore/models/inline_object3.rb index fef4fac9195..b9518d74b4d 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/inline_object3.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/inline_object3.rb @@ -251,7 +251,7 @@ module Petstore end if !@password.nil? && @password.to_s.length < 10 - invalid_properties.push('invalid value for "password", the character length must be great than or equal to 10.') + invalid_properties.push('invalid value for "password", the character length must be greater than or equal to 10.') end invalid_properties @@ -388,7 +388,7 @@ module Petstore end if !password.nil? && password.to_s.length < 10 - fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 10.' + fail ArgumentError, 'invalid value for "password", the character length must be greater than or equal to 10.' end @password = password