Sha256: c88d8a58f9d6ca7d4bd0456a21b0bf0912ba14dfb5d1a4e63a45f4e5074128d2

Contents?: true

Size: 273 Bytes

Versions: 14

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

require "dry/schema"

module Tana
  module Responses
    # Validates the ninth level of an API response.
    LevelI = Dry::Schema.JSON parent: Node do
      optional(:children).value(:array, min_size?: 1).each { hash Node }
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
tana-0.14.0 lib/tana/responses/level_i.rb
tana-0.13.0 lib/tana/responses/level_i.rb
tana-0.12.0 lib/tana/responses/level_i.rb
tana-0.11.0 lib/tana/responses/level_i.rb
tana-0.10.0 lib/tana/responses/level_i.rb
tana-0.9.0 lib/tana/responses/level_i.rb
tana-0.8.0 lib/tana/responses/level_i.rb
tana-0.7.0 lib/tana/responses/level_i.rb
tana-0.6.0 lib/tana/responses/level_i.rb
tana-0.4.0 lib/tana/responses/level_i.rb
tana-0.3.0 lib/tana/responses/level_i.rb
tana-0.2.0 lib/tana/responses/level_i.rb
tana-0.1.0 lib/tana/responses/level_i.rb
tana-0.0.0 lib/tana/responses/level_i.rb