module Grape::Validations::Types
def structure?(type)
-
(Boolean)
- whether or not the type is known by Grape as a valid
Parameters:
-
type
(Class
) -- type to check
def structure?(type) STRUCTURES.include?(type) end
(Boolean)
- whether or not the type is known by Grape as a valid
type
(Class
)
-- type to check
def structure?(type) STRUCTURES.include?(type) end