Method: Grape::Validations::Types.structure?

Defined in:
lib/grape/validations/types.rb

.structure?(type) ⇒ Boolean

Note:

This method does not yet consider ‘complex types’, which inherit Virtus.model.

Is the given class a standard data structure (collection or map) as recognized by Grape?



83
84
85
# File 'lib/grape/validations/types.rb', line 83

def self.structure?(type)
  STRUCTURES.include?(type)
end