mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-22 22:26:41 +00:00
Adds use_serialized_instance config
This commit is contained in:
parent
bda6e081de
commit
33c2ef4bec
@ -8,6 +8,7 @@ module Schemable
|
||||
:decimal_as_string,
|
||||
:custom_type_mappers,
|
||||
:disable_factory_bot,
|
||||
:use_serialized_instance,
|
||||
:custom_defined_enum_method
|
||||
)
|
||||
|
||||
@ -19,6 +20,7 @@ module Schemable
|
||||
@decimal_as_string = false
|
||||
@disable_factory_bot = true
|
||||
@custom_defined_enum_method = nil
|
||||
@use_serialized_instance = false
|
||||
end
|
||||
|
||||
def type_mapper(type_name)
|
||||
|
||||
@ -5,9 +5,11 @@ module Schemable
|
||||
attr_accessor float_as_string: bool
|
||||
attr_accessor decimal_as_string: bool
|
||||
attr_accessor disable_factory_bot: bool
|
||||
attr_accessor use_serialized_instance: bool
|
||||
attr_accessor custom_defined_enum_method: Symbol?
|
||||
attr_accessor custom_type_mappers: Hash[Symbol, any]
|
||||
|
||||
|
||||
def initialize: -> void
|
||||
|
||||
def add_custom_type_mapper: (Symbol, Hash[Symbol, any]) -> void
|
||||
|
||||
Loading…
Reference in New Issue
Block a user