From cd9df669b9ba479f6b2445323674faf1c1db41a1 Mon Sep 17 00:00:00 2001 From: Antonio Tapiador del Dujo Date: Fri, 13 Sep 2024 15:13:44 +0200 Subject: [PATCH] Add missing dto default value --- spec/resource_struct_builder_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/resource_struct_builder_spec.rb b/spec/resource_struct_builder_spec.rb index 5901cb9..354f7ce 100644 --- a/spec/resource_struct_builder_spec.rb +++ b/spec/resource_struct_builder_spec.rb @@ -24,8 +24,8 @@ class NestedValueObjectDto < T::Struct class SimpleMaybeDto < T::Struct const :basic, String - const :absent, Maybe[T.nilable(String)] - const :present, Maybe[T.nilable(Integer)] + const :absent, Maybe[T.nilable(String)], default: Maybe.empty + const :present, Maybe[T.nilable(Integer)], default: Maybe.empty const :integer, Maybe[Integer] end