Module: Dry::Schema::Info::SchemaMethods

Included in:
Processor
Defined in:
lib/dry/schema/extensions/info.rb

Instance Method Summary collapse

Instance Method Details

#infoHash<Symbol=>Hash>

Return information about keys and types

Returns:

  • (Hash<Symbol=>Hash>)


17
18
19
20
21
# File 'lib/dry/schema/extensions/info.rb', line 17

def info
  compiler = SchemaCompiler.new
  compiler.call(to_ast)
  compiler.to_h
end