Sha256: b3d1f5b4dc540622c515347deef01778844d046fa8a86992338b73e7df40f35e

Contents?: true

Size: 338 Bytes

Versions: 13

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Adaptors
    class Contract < Dry::Validation::Contract
      module Types
        include Dry::Types()

        Reference = Dry::Schema.Params do
          required(:object).filled(eql?: :reference)
          required(:id).filled(:string)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ledger_sync-1.3.5 lib/ledger_sync/adaptors/contract.rb
ledger_sync-1.3.4 lib/ledger_sync/adaptors/contract.rb
ledger_sync-1.3.3 lib/ledger_sync/adaptors/contract.rb
ledger_sync-1.3.2 lib/ledger_sync/adaptors/contract.rb
ledger_sync-1.3.1 lib/ledger_sync/adaptors/contract.rb
ledger_sync-1.1.3 lib/ledger_sync/adaptors/contract.rb
ledger_sync-1.1.2 lib/ledger_sync/adaptors/contract.rb
ledger_sync-1.1.1 lib/ledger_sync/adaptors/contract.rb
ledger_sync-1.0.10 lib/ledger_sync/adaptors/contract.rb
ledger_sync-1.0.9 lib/ledger_sync/adaptors/contract.rb
ledger_sync-1.0.3 lib/ledger_sync/adaptors/contract.rb
ledger_sync-1.0.2 lib/ledger_sync/adaptors/contract.rb
ledger_sync-1.0.0 lib/ledger_sync/adaptors/contract.rb