module Grape::Validations::Types

def structure?(type)

Returns:
  • (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