Module: Dry::Mutations::DSL::Schema

Defined in:
lib/dry/mutations/dsl/schema.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#schemaObject



9
10
11
12
13
14
# File 'lib/dry/mutations/dsl/schema.rb', line 9

def schema
  @schema ||= derived_schema
  return @schema unless block_given?

  @schema = Validation.Schema(@schema, **@schema.options, &Proc.new)
end