Module: Tana::Requests

Defined in:
lib/tana/requests/add.rb,
lib/tana/requests/node.rb,
lib/tana/requests/level_a.rb,
lib/tana/requests/level_b.rb,
lib/tana/requests/level_c.rb,
lib/tana/requests/level_d.rb,
lib/tana/requests/level_e.rb,
lib/tana/requests/level_f.rb,
lib/tana/requests/level_g.rb,
lib/tana/requests/level_h.rb,
lib/tana/requests/level_i.rb

Defined Under Namespace

Classes: Add, Node

Constant Summary collapse

LevelA =

Validates the first level of an API request.

Dry::Schema.JSON parent: Node.schema do
  optional(:children).value(:array, min_size?: 1).each { hash LevelB }
end
LevelB =

Validates the second level of an API request.

Dry::Schema.JSON parent: Node.schema do
  optional(:children).value(:array, min_size?: 1).each { hash LevelC }
end
LevelC =

Validates the third level of an API request.

Dry::Schema.JSON parent: Node.schema do
  optional(:children).value(:array, min_size?: 1).each { hash LevelD }
end
LevelD =

Validates the fourth level of an API request.

Dry::Schema.JSON parent: Node.schema do
  optional(:children).value(:array, min_size?: 1).each { hash LevelE }
end
LevelE =

Validates the fifth level of an API request.

Dry::Schema.JSON parent: Node.schema do
  optional(:children).value(:array, min_size?: 1).each { hash LevelF }
end
LevelF =

Validates the sixth level of an API request.

Dry::Schema.JSON parent: Node.schema do
  optional(:children).value(:array, min_size?: 1).each { hash LevelG }
end
LevelG =

Validates the seventh level of an API request.

Dry::Schema.JSON parent: Node.schema do
  optional(:children).value(:array, min_size?: 1).each { hash LevelH }
end
LevelH =

Validates the eight level of an API request.

Dry::Schema.JSON parent: Node.schema do
  optional(:children).value(:array, min_size?: 1).each { hash LevelI }
end
LevelI =

Validates the ninth level of an API request.

Dry::Schema.JSON parent: Node.schema do
  optional(:children).value(:array, min_size?: 1).each { hash Node.schema }
end