OpenApi::PrimitiveValidator
Constants
EXCLUSIVE_MAX_NUMBER_ERROR = "invalid value for \"%s\", the character length must be smaller than %s."
EXCLUSIVE_MIN_NUMBER_ERROR = "invalid value for \"%s\", the character length must be greater than %s."
MAX_ITEMS_ERROR = "invalid value for \"%s\", number of items must be smaller than or equal to %s."
MAX_LENGTH_ERROR = "invalid value for \"%s\", the character length must be smaller than or equal to %s."
MAX_NUMBER_ERROR = "invalid value for \"%s\", must be smaller than or equal to %s."
MIN_ITEMS_ERROR = "invalid value for \"%s\", number of items must be greater than or equal to %s."
MIN_LENGTH_ERROR = "invalid value for \"%s\", the character length must be greater than or equal to %s."
MIN_NUMBER_ERROR = "invalid value for \"%s\", must be greater than or equal to %s."
PATTERN_ERROR = "invalid value for \"%s\", must conform to the pattern %s."
Class methods
max_number_error(name : String, value : Number, max : Number, exclusive : Bool = false) : String | Nil
Sourcemin_number_error(name : String, value : Number, min : Number, exclusive : Bool = false) : String | Nil
Source