Sha256: 7f0eaf529a88c70e636230675d9c2981141ca220551783fd21b8077b47d351db

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

module Tangany
  module Custody
    module Contracts
      module Wallets
        class Update < ApplicationContract
          TagSchema = Dry::Schema.Params do
            10.times do |i|
              optional("tag#{i}".to_sym).maybe(:string, max_size?: 256)
            end
          end

          schema do
            config.validate_keys = true

            optional(:tags).array(TagSchema)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tangany-0.0.5 lib/tangany/custody/contracts/wallets/update.rb
tangany-0.0.4 lib/tangany/custody/contracts/wallets/update.rb
tangany-0.0.3 lib/tangany/custody/contracts/wallets/update.rb
tangany-0.0.2 lib/tangany/custody/contracts/wallets/update.rb
tangany-0.0.1 lib/tangany/custody/contracts/wallets/update.rb