Sha256: 97139fb478e6c443b156e0c18cc3ceb42857146244325adb9aa957542d101c42
Contents?: true
Size: 280 Bytes
Versions: 14
Compression:
Stored size: 280 Bytes
Contents
# frozen_string_literal: true require "dry/schema" module Tana module Requests # Validates the first level of an API request. LevelA = Dry::Schema.JSON parent: Node.schema do optional(:children).value(:array, min_size?: 1).each { hash LevelB } end end end
Version data entries
14 entries across 14 versions & 1 rubygems