View Source OpenApiSpex.Cast.Error (open_api_spex v3.18.3)
OpenApiSpex Cast Error
Link to this section Summary
Link to this section Types
@type all_of_error() :: {:all_of, [String.t()]}
@type any_of_error() :: {:any_of, [String.t()]}
@type args() :: all_of_error() | any_of_error() | invalid_schema_error() | exclusive_max_error() | exclusive_min_error() | invalid_discriminator_value_error() | invalid_enum_error() | invalid_format_error() | invalid_type_error() | max_items_error() | max_length_error() | max_properties_error() | maximum_error() | min_items_error() | min_length_error() | min_properties_error() | minimum_error() | missing_field_error() | missing_header_error() | invalid_header_error() | multiple_of_error() | no_value_for_discriminator_error() | null_value_error() | one_of_error() | unexpected_field_error() | unique_items_error()
@type exclusive_max_error() :: {:exclusive_max, non_neg_integer(), non_neg_integer()}
@type exclusive_min_error() :: {:exclusive_min, non_neg_integer(), non_neg_integer()}
@type invalid_enum_error() :: {:invalid_enum}
@type invalid_format_error() :: {:invalid_format, any()}
@type invalid_schema_error() :: {:invalid_schema_type}
@type max_items_error() :: {:max_items, non_neg_integer(), non_neg_integer()}
@type max_length_error() :: {:max_length, non_neg_integer()}
@type max_properties_error() :: {:max_properties, non_neg_integer(), non_neg_integer()}
@type min_items_error() :: {:min_items, non_neg_integer(), non_neg_integer()}
@type min_length_error() :: {:min_length, non_neg_integer()}
@type min_properties_error() :: {:min_properties, non_neg_integer(), non_neg_integer()}
@type multiple_of_error() :: {:multiple_of, non_neg_integer(), non_neg_integer()}
@type null_value_error() :: {:null_value}
@type one_of_error() :: {:one_of, [String.t()]}
@type reason() ::
:all_of
| :any_of
| :invalid_schema_type
| :exclusive_max
| :exclusive_min
| :invalid_discriminator_value
| :invalid_enum
| :invalid_format
| :invalid_type
| :max_items
| :max_length
| :max_properties
| :maximum
| :min_items
| :min_length
| :minimum
| :missing_field
| :missing_header
| :invalid_header
| :multiple_of
| :no_value_for_discriminator
| :null_value
| :one_of
| :unexpected_field
| :unique_items
@type unique_items_error() :: {:unique_items}