From 178218a42f440dabb02200b3805213be547c4613 Mon Sep 17 00:00:00 2001 From: Genar Trias Ortiz Date: Wed, 21 Aug 2024 17:20:07 +0200 Subject: [PATCH] fix requires --- lib/resource_registry.rb | 2 -- spec/resource_struct_builder_spec.rb | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/resource_registry.rb b/lib/resource_registry.rb index 7140e1e..10df094 100644 --- a/lib/resource_registry.rb +++ b/lib/resource_registry.rb @@ -10,8 +10,6 @@ require 'public/versions/version' require 'schema_registry/json_schema_mapper' require 'schema_registry/maybe' -require 'schema_registry/maybe/absent' -require 'schema_registry/maybe/present' require 'runtime_generic' # Entry point for ResourceRegistry diff --git a/spec/resource_struct_builder_spec.rb b/spec/resource_struct_builder_spec.rb index d67f6c3..5901cb9 100644 --- a/spec/resource_struct_builder_spec.rb +++ b/spec/resource_struct_builder_spec.rb @@ -24,9 +24,9 @@ class NestedValueObjectDto < T::Struct class SimpleMaybeDto < T::Struct const :basic, String - const :absent, Maybe[T.nilable(String)], default: Maybe.empty - const :present, Maybe[T.nilable(Integer)], default: Maybe.empty - const :integer, Maybe[Integer], default: Maybe.empty + const :absent, Maybe[T.nilable(String)] + const :present, Maybe[T.nilable(Integer)] + const :integer, Maybe[Integer] end class ArrayDto < T::Struct