View Source argo_json_value_decoder (argo v1.0.4)

Summary

Types

-type t() ::
    #argo_json_value_decoder{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_decoder :: {module(), argo_json_scalar_decoder:t()}}.

Functions

Link to this function

decode_wire_type(JsonValueDecoder, WireType, JsonValue)

View Source
-spec decode_wire_type(JsonValueDecoder, WireType, JsonValue) -> {JsonValueDecoder, Value}
                    when
                        JsonValueDecoder :: t(),
                        WireType :: argo_wire_type:t(),
                        JsonValue :: argo_json:json_value(),
                        Value :: argo_value:t().
-spec format_error(dynamic(), dynamic()) -> dynamic().
-spec new() -> JsonValueDecoder when JsonValueDecoder :: t().
Link to this function

new(JsonScalarDecoderModule, JsonScalarDecoderOptions)

View Source
-spec new(JsonScalarDecoderModule, JsonScalarDecoderOptions) -> JsonValueDecoder
       when
           JsonScalarDecoderModule :: module(),
           JsonScalarDecoderOptions :: argo_json_scalar_decoder:options(),
           JsonValueDecoder :: t().