Skip to content

Commit

Permalink
Add missing dto default value
Browse files Browse the repository at this point in the history
  • Loading branch information
atd committed Sep 13, 2024
1 parent e870090 commit cd9df66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/resource_struct_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cd9df66

Please sign in to comment.