View Source argo_json_value_encoder (argo v1.0.4)
Summary
Types
-type t() :: #argo_json_value_encoder{current_path :: argo_path_value:t(), field_errors :: argo_index_map:t(argo_path_value:t(), argo_error_value:t()), response_errors :: [argo_error_value:t()], scalar_encoder :: {module(), argo_json_scalar_encoder:t()}}.
Functions
-spec encode_value(JsonValueEncoder, Value) -> {JsonValueEncoder, JsonValue} when JsonValueEncoder :: t(), Value :: argo_value:t(), JsonValue :: argo_json:json_value().
-spec new() -> JsonValueEncoder when JsonValueEncoder :: t().
-spec new(JsonScalarEncoderModule, JsonScalarEncoderOptions) -> JsonValueEncoder when JsonScalarEncoderModule :: module(), JsonScalarEncoderOptions :: argo_json_scalar_encoder:options(), JsonValueEncoder :: t().