Module: Granola::Serializer::Schema::ClassMethods

Defined in:
lib/granola/schema.rb

Instance Method Summary collapse

Instance Method Details

#schemaObject

Public: The schema definition for entities emitted by this serializer.

Returns a Hash that complies to JSON schema.


17
18
19
# File 'lib/granola/schema.rb', line 17

def schema
  fail NotImplementedError
end