Class: Avro::ResolutionCanonicalForm

Inherits:
SchemaNormalization
  • Object
show all
Defined in:
lib/avro/resolution_canonical_form.rb

Constant Summary collapse

DECIMAL_LOGICAL_TYPE =
'decimal'.freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.to_resolution_form(schema) ⇒ Object



7
8
9
# File 'lib/avro/resolution_canonical_form.rb', line 7

def self.to_resolution_form(schema)
  new.to_resolution_form(schema)
end

Instance Method Details

#to_resolution_form(schema) ⇒ Object



11
12
13
# File 'lib/avro/resolution_canonical_form.rb', line 11

def to_resolution_form(schema)
  MultiJson.dump(normalize_schema(schema))
end