Fix spelling mistake in validations (#21287)

This commit is contained in:
Jens Balvig
2025-05-16 14:55:18 +09:00
committed by GitHub
parent 6c0e7274ea
commit cfe0b6fae3
14 changed files with 22 additions and 22 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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