class OpenApi::EnumValidator
 
  - OpenApi::EnumValidator
 - Reference
 - Object
 
Defined in:
validators/enum_validator.crConstant Summary
- 
        ERROR_MESSAGE = 
"invalid value for \"%s\", must be one of %s." 
Class Method Summary
- .valid?(values : Array(T) | Nil, allowable_values : StaticArray, allow_nil : Bool = true) : Bool forall T
 - .valid?(hash : Hash(U, T) | Nil, allowable_values : StaticArray, allow_nil : Bool = true) : Bool forall T, U
 - .valid?(value : T | Nil, allowable_values : StaticArray, allow_nil : Bool = true) : Bool forall T
 - .validate(name : String, values : Array(T) | Nil, allowable_values : StaticArray, allow_nil : Bool = true) : Nil forall T
 - .validate(name : String, hash : Hash(U, T) | Nil, allowable_values : StaticArray, allow_nil : Bool = true) : Nil forall T, U
 - .validate(name : String, value : T | Nil, allowable_values : StaticArray, allow_nil : Bool = true) : Nil forall T
 
Class Method Detail
        
        def self.valid?(values : Array(T) | Nil, allowable_values : StaticArray, allow_nil : Bool = true) : Bool forall T
        #
      
      
      
        
        def self.valid?(hash : Hash(U, T) | Nil, allowable_values : StaticArray, allow_nil : Bool = true) : Bool forall T, U
        #
      
      
      
        
        def self.valid?(value : T | Nil, allowable_values : StaticArray, allow_nil : Bool = true) : Bool forall T
        #
      
      
      
        
        def self.validate(name : String, values : Array(T) | Nil, allowable_values : StaticArray, allow_nil : Bool = true) : Nil forall T
        #
      
      
      
        
        def self.validate(name : String, hash : Hash(U, T) | Nil, allowable_values : StaticArray, allow_nil : Bool = true) : Nil forall T, U
        #