mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 14:56:08 +00:00
Fix spelling mistake in validations (#21287)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user