Sha256: 5e66fd637650d83cb87e2ca1bf2eb2f6e260ba7b8c7a142fc95b4f0aa7e584de

Contents?: true

Size: 345 Bytes

Versions: 14

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

require "dry/schema"

module Tana
  module Responses
    # Validates a generic node within an API response.
    Node = Dry::Schema.JSON do
      optional(:description).filled :string
      optional(:name).filled :string
      required(:nodeId).filled :string
      required(:type).filled :string
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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