Sets configurations by default

This commit is contained in:
Muhammad Nawzad 2023-11-10 13:00:53 +03:00
parent 8b00983c57
commit b480c82361
No known key found for this signature in database
GPG Key ID: B954B6AAE33940B2
2 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@ module Schemable
class Definition
attr_reader :configuration
def initialize(configuration)
@configuration = configuration
def initialize
@configuration = Schemable.configuration
end
def serializer

View File

@ -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.