class URI::Params::Serializable::EmptyIndexForNonScalarArrayParamError

Overview

Raised when a non-scalar type has a empty ("[]") index in the query. Complex (i.e. non-scalar) objects require explicit numeration for their instances, e.g. if foo is Array(NestedParams(a : Int32, b : Int32)), then foo[][a]=1&foo[][b]=2 makes no sense, because it's not clear whether is it the same object.

Defined in:

http-params-serializable/errors.cr

Constructors

Instance methods inherited from class URI::Params::Serializable::Error

build_path(*path) build_path, path : Array(String) path

Constructor Detail

def self.new(param_path : Tuple, nested_path : Array(String)) #

[View source]