lib/pwush/response/value.rb in pwush-0.2.0 vs lib/pwush/response/value.rb in pwush-0.3.0
- old
+ new
@@ -1,9 +1,9 @@
module Pwush
module Response
class Value < Dry::Struct::Value
attribute :status_code, Types::Coercible::Integer
- attribute :status_message, Types::Strict::String.meta(omittable: true)
- attribute :body, (Types::Hash | Types::String).meta(omittable: true)
+ attribute? :status_message, Types::Strict::String
+ attribute? :body, (Types::Hash | Types::String).optional
end
end
end