Module: Tana::Responses
- Defined in:
- lib/tana/responses/node.rb,
lib/tana/responses/root.rb,
lib/tana/responses/level_a.rb,
lib/tana/responses/level_b.rb,
lib/tana/responses/level_c.rb,
lib/tana/responses/level_d.rb,
lib/tana/responses/level_e.rb,
lib/tana/responses/level_f.rb,
lib/tana/responses/level_g.rb,
lib/tana/responses/level_h.rb,
lib/tana/responses/level_i.rb
Constant Summary collapse
- Node =
Validates a generic node within an API response.
Dry::Schema.JSON do optional(:description).filled :string optional(:name).filled :string required(:nodeId).filled :string required(:type).filled :string end
- Root =
Validates the root node of an API response.
Dry::Schema.JSON do optional(:children).value(:array, min_size?: 1).each { hash LevelA } end
- LevelA =
Validates the first level of an API response.
Dry::Schema.JSON parent: Node do optional(:children).value(:array, min_size?: 1).each { hash LevelB } end
- LevelB =
Validates the second level of an API response.
Dry::Schema.JSON parent: Node do optional(:children).value(:array, min_size?: 1).each { hash LevelC } end
- LevelC =
Validates the third level of an API response.
Dry::Schema.JSON parent: Node do optional(:children).value(:array, min_size?: 1).each { hash LevelD } end
- LevelD =
Validates the fourth level of an API response.
Dry::Schema.JSON parent: Node do optional(:children).value(:array, min_size?: 1).each { hash LevelE } end
- LevelE =
Validates the fifth level of an API response.
Dry::Schema.JSON parent: Node do optional(:children).value(:array, min_size?: 1).each { hash LevelF } end
- LevelF =
Validates the sixth level of an API response.
Dry::Schema.JSON parent: Node do optional(:children).value(:array, min_size?: 1).each { hash LevelG } end
- LevelG =
Validates the seventh level of an API response.
Dry::Schema.JSON parent: Node do optional(:children).value(:array, min_size?: 1).each { hash LevelH } end
- LevelH =
Validates the eighth level of an API response.
Dry::Schema.JSON parent: Node do optional(:children).value(:array, min_size?: 1).each { hash LevelI } end
- LevelI =
Validates the ninth level of an API response.
Dry::Schema.JSON parent: Node do optional(:children).value(:array, min_size?: 1).each { hash Node } end