diff --git a/lib/schemable/definition.rb b/lib/schemable/definition.rb index 7a202f7..e90a9f6 100644 --- a/lib/schemable/definition.rb +++ b/lib/schemable/definition.rb @@ -2,8 +2,8 @@ module Schemable class Definition attr_reader :configuration - def initialize(configuration) - @configuration = configuration + def initialize + @configuration = Schemable.configuration end def serializer diff --git a/sig/schemable/definition.rbs b/sig/schemable/definition.rbs index cb29332..bc06f3c 100644 --- a/sig/schemable/definition.rbs +++ b/sig/schemable/definition.rbs @@ -3,7 +3,7 @@ module Schemable attr_accessor configuration: Configuration # Initializes the definition with the configuration. - def initialize: (Configuration) -> void + def initialize: -> void # Returns the attributes that are nullable in the request/response body. This means that they can be present in the request/response body but they can be null. # They are not required to be present in the request body.