mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-22 22:26:41 +00:00
Sets configurations by default
This commit is contained in:
parent
8b00983c57
commit
b480c82361
@ -2,8 +2,8 @@ module Schemable
|
||||
class Definition
|
||||
attr_reader :configuration
|
||||
|
||||
def initialize(configuration)
|
||||
@configuration = configuration
|
||||
def initialize
|
||||
@configuration = Schemable.configuration
|
||||
end
|
||||
|
||||
def serializer
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user