Current section

Files

Jump to
json_blueprint src json@blueprint.erl
Raw

src/json@blueprint.erl

-module(json@blueprint).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([generate_json_schema/1, get_dynamic_decoder/1, decode/2, string/0, int/0, float/0, bool/0, list/1, optional/1, field/2, optional_field/2, union_type_encoder/2, union_type_decoder/1, map/2, tuple2/2, tuple3/3, tuple4/4, tuple5/5, tuple6/6, decode0/1, decode1/2, decode2/3, decode3/4, decode4/5, decode5/6, decode6/7, decode7/8, decode8/9, decode9/10]).
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 16).
-spec generate_json_schema(
{fun((gleam@dynamic:dynamic_()) -> {ok, any()} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}
) -> gleam@json:json().
generate_json_schema(Decoder) ->
{_, Schema} = Decoder,
json@blueprint@schema:to_json(json@blueprint@schema:new_schema(Schema)).
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 21).
-spec get_dynamic_decoder(
{fun((gleam@dynamic:dynamic_()) -> {ok, GGV} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}
) -> fun((gleam@dynamic:dynamic_()) -> {ok, GGV} |
{error, list(gleam@dynamic:decode_error())}).
get_dynamic_decoder(Decoder) ->
{Dyn_decoder, _} = Decoder,
Dyn_decoder.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 26).
-spec decode(
{fun((gleam@dynamic:dynamic_()) -> {ok, GGY} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
binary()
) -> {ok, GGY} | {error, gleam@json:decode_error()}.
decode(Decoder, Json_string) ->
{Dyn_decoder, _} = Decoder,
gleam@json:decode(Json_string, Dyn_decoder).
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 34).
-spec string() -> {fun((gleam@dynamic:dynamic_()) -> {ok, binary()} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
string() ->
{fun gleam@dynamic:string/1, {type, string_type}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 38).
-spec int() -> {fun((gleam@dynamic:dynamic_()) -> {ok, integer()} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
int() ->
{fun gleam@dynamic:int/1, {type, integer_type}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 42).
-spec float() -> {fun((gleam@dynamic:dynamic_()) -> {ok, float()} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
float() ->
{fun gleam@dynamic:float/1, {type, number_type}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 46).
-spec bool() -> {fun((gleam@dynamic:dynamic_()) -> {ok, boolean()} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
bool() ->
{fun gleam@dynamic:bool/1, {type, boolean_type}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 50).
-spec list(
{fun((gleam@dynamic:dynamic_()) -> {ok, GHG} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, list(GHG)} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
list(Decoder_type) ->
{Decoder, Schema} = Decoder_type,
{gleam@dynamic:list(Decoder), {array, {some, Schema}}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 55).
-spec optional(
{fun((gleam@dynamic:dynamic_()) -> {ok, GHK} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, gleam@option:option(GHK)} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
optional(Decode) ->
{Decoder, Schema} = Decode,
{gleam@dynamic:optional(Decoder), {nullable, Schema}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 60).
-spec field(
binary(),
{fun((gleam@dynamic:dynamic_()) -> {ok, GHO} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GHO} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}}.
field(Name, Inner_type) ->
{Decoder, Schema} = Inner_type,
{gleam@dynamic:field(Name, Decoder), {Name, Schema}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 65).
-spec optional_field(
binary(),
{fun((gleam@dynamic:dynamic_()) -> {ok, GHR} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, gleam@option:option(GHR)} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}}.
optional_field(Name, Inner_type) ->
{Decoder, Schema} = Inner_type,
{gleam@dynamic:optional_field(Name, Decoder), {Name, {nullable, Schema}}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 101).
-spec union_type_encoder(GHV, fun((GHV) -> {binary(), gleam@json:json()})) -> gleam@json:json().
union_type_encoder(Of, Encoder_fn) ->
{Field_name, Json_value} = Encoder_fn(Of),
gleam@json:object(
[{<<"type"/utf8>>, gleam@json:string(Field_name)},
{<<"data"/utf8>>, Json_value}]
).
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 131).
-spec union_type_decoder(
list({binary(),
{fun((gleam@dynamic:dynamic_()) -> {ok, GHW} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}})
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GHW} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
union_type_decoder(Decoders) ->
Constructor = fun(Type_str, Data) -> _pipe = Decoders,
_pipe@1 = gleam@list:find_map(_pipe, fun(Dec) -> case Dec of
{Name, D} when Type_str =:= Name ->
{Dyn_decoder, _} = D,
Dyn_decoder(Data);
_ ->
{error, []}
end end),
gleam@result:replace_error(
_pipe@1,
[{decode_error, <<"valid constructor type"/utf8>>, Type_str, []}]
) end,
Enum_decoder = fun(Data@1) ->
_pipe@2 = (gleam@dynamic:decode2(
Constructor,
gleam@dynamic:field(<<"type"/utf8>>, fun gleam@dynamic:string/1),
gleam@dynamic:field(<<"data"/utf8>>, fun gleam@dynamic:dynamic/1)
))(Data@1),
gleam@result:flatten(_pipe@2)
end,
{Enum_decoder,
begin
_pipe@3 = gleam@list:map(
Decoders,
fun(Field_dec) ->
{Name@1, Dec@1} = Field_dec,
{object,
[{<<"type"/utf8>>, {enum, [gleam@json:string(Name@1)]}},
{<<"data"/utf8>>, erlang:element(2, Dec@1)}],
{some, false},
{some, [<<"type"/utf8>>, <<"data"/utf8>>]}}
end
),
{one_of, _pipe@3}
end}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 180).
-spec map(
{fun((gleam@dynamic:dynamic_()) -> {ok, GIA} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
fun((GIA) -> GIC)
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GIC} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
map(Decoder, Foo) ->
{Dyn_dec, Schema} = Decoder,
{fun(Input) -> gleam@result:map(Dyn_dec(Input), Foo) end, Schema}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 185).
-spec tuple2(
{fun((gleam@dynamic:dynamic_()) -> {ok, GIE} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GIG} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, {GIE, GIG}} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
tuple2(Decode1, Decode2) ->
{Decoder1, Schema1} = Decode1,
{Decoder2, Schema2} = Decode2,
{gleam@dynamic:tuple2(Decoder1, Decoder2),
{detailed_array,
none,
{some, [Schema1, Schema2]},
{some, 2},
{some, 2},
none,
none,
none,
none}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 206).
-spec tuple3(
{fun((gleam@dynamic:dynamic_()) -> {ok, GIJ} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GIL} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GIN} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, {GIJ, GIL, GIN}} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
tuple3(Decode1, Decode2, Decode3) ->
{Decoder1, Schema1} = Decode1,
{Decoder2, Schema2} = Decode2,
{Decoder3, Schema3} = Decode3,
{gleam@dynamic:tuple3(Decoder1, Decoder2, Decoder3),
{detailed_array,
none,
{some, [Schema1, Schema2, Schema3]},
{some, 3},
{some, 3},
none,
none,
none,
none}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 229).
-spec tuple4(
{fun((gleam@dynamic:dynamic_()) -> {ok, GIQ} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GIS} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GIU} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GIW} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, {GIQ, GIS, GIU, GIW}} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
tuple4(Decode1, Decode2, Decode3, Decode4) ->
{Decoder1, Schema1} = Decode1,
{Decoder2, Schema2} = Decode2,
{Decoder3, Schema3} = Decode3,
{Decoder4, Schema4} = Decode4,
{gleam@dynamic:tuple4(Decoder1, Decoder2, Decoder3, Decoder4),
{detailed_array,
none,
{some, [Schema1, Schema2, Schema3, Schema4]},
{some, 4},
{some, 4},
none,
none,
none,
none}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 254).
-spec tuple5(
{fun((gleam@dynamic:dynamic_()) -> {ok, GIZ} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GJB} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GJD} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GJF} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GJH} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, {GIZ, GJB, GJD, GJF, GJH}} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
tuple5(Decode1, Decode2, Decode3, Decode4, Decode5) ->
{Decoder1, Schema1} = Decode1,
{Decoder2, Schema2} = Decode2,
{Decoder3, Schema3} = Decode3,
{Decoder4, Schema4} = Decode4,
{Decoder5, Schema5} = Decode5,
{gleam@dynamic:tuple5(Decoder1, Decoder2, Decoder3, Decoder4, Decoder5),
{detailed_array,
none,
{some, [Schema1, Schema2, Schema3, Schema4, Schema5]},
{some, 5},
{some, 5},
none,
none,
none,
none}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 281).
-spec tuple6(
{fun((gleam@dynamic:dynamic_()) -> {ok, GJK} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GJM} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GJO} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GJQ} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GJS} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()},
{fun((gleam@dynamic:dynamic_()) -> {ok, GJU} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, {GJK, GJM, GJO, GJQ, GJS, GJU}} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
tuple6(Decode1, Decode2, Decode3, Decode4, Decode5, Decode6) ->
{Decoder1, Schema1} = Decode1,
{Decoder2, Schema2} = Decode2,
{Decoder3, Schema3} = Decode3,
{Decoder4, Schema4} = Decode4,
{Decoder5, Schema5} = Decode5,
{Decoder6, Schema6} = Decode6,
{gleam@dynamic:tuple6(
Decoder1,
Decoder2,
Decoder3,
Decoder4,
Decoder5,
Decoder6
),
{detailed_array,
none,
{some, [Schema1, Schema2, Schema3, Schema4, Schema5, Schema6]},
{some, 6},
{some, 6},
none,
none,
none,
none}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 310).
-spec create_object_schema(
list({binary(), json@blueprint@schema:schema_definition()})
) -> json@blueprint@schema:schema_definition().
create_object_schema(Fields) ->
{object,
Fields,
{some, false},
{some, gleam@list:filter_map(Fields, fun(Field_dec) -> case Field_dec of
{_, {nullable, _}} ->
{error, nil};
{Name, _} ->
{ok, Name}
end end)}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 327).
-spec decode0(GJY) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GJY} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
decode0(Constructor) ->
Check = gleam_stdlib:identity(maps:from_list([])),
{fun(Value) -> case Value of
X when X =:= Check ->
{ok, Constructor};
X@1 ->
{error,
[{decode_error,
<<"{}"/utf8>>,
gleam@string:inspect(X@1),
[]}]}
end end, {object, [], {some, false}, none}}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 349).
-spec decode1(
fun((GKA) -> GKB),
{fun((gleam@dynamic:dynamic_()) -> {ok, GKA} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GKB} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
decode1(Constructor, T1) ->
{Decoder, Schema} = T1,
{gleam@dynamic:decode1(Constructor, Decoder),
create_object_schema([Schema])}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 354).
-spec decode2(
fun((GKE, GKF) -> GKG),
{fun((gleam@dynamic:dynamic_()) -> {ok, GKE} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GKF} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GKG} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
decode2(Constructor, T1, T2) ->
{Decoder1, Schema1} = T1,
{Decoder2, Schema2} = T2,
{gleam@dynamic:decode2(Constructor, Decoder1, Decoder2),
create_object_schema([Schema1, Schema2])}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 367).
-spec decode3(
fun((GKK, GKL, GKM) -> GKN),
{fun((gleam@dynamic:dynamic_()) -> {ok, GKK} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GKL} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GKM} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GKN} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
decode3(Constructor, T1, T2, T3) ->
{Decoder1, Schema1} = T1,
{Decoder2, Schema2} = T2,
{Decoder3, Schema3} = T3,
{gleam@dynamic:decode3(Constructor, Decoder1, Decoder2, Decoder3),
create_object_schema([Schema1, Schema2, Schema3])}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 382).
-spec decode4(
fun((GKS, GKT, GKU, GKV) -> GKW),
{fun((gleam@dynamic:dynamic_()) -> {ok, GKS} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GKT} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GKU} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GKV} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GKW} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
decode4(Constructor, T1, T2, T3, T4) ->
{Decoder1, Schema1} = T1,
{Decoder2, Schema2} = T2,
{Decoder3, Schema3} = T3,
{Decoder4, Schema4} = T4,
{gleam@dynamic:decode4(Constructor, Decoder1, Decoder2, Decoder3, Decoder4),
create_object_schema([Schema1, Schema2, Schema3, Schema4])}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 399).
-spec decode5(
fun((GLC, GLD, GLE, GLF, GLG) -> GLH),
{fun((gleam@dynamic:dynamic_()) -> {ok, GLC} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GLD} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GLE} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GLF} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GLG} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GLH} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
decode5(Constructor, T1, T2, T3, T4, T5) ->
{Decoder1, Schema1} = T1,
{Decoder2, Schema2} = T2,
{Decoder3, Schema3} = T3,
{Decoder4, Schema4} = T4,
{Decoder5, Schema5} = T5,
{gleam@dynamic:decode5(
Constructor,
Decoder1,
Decoder2,
Decoder3,
Decoder4,
Decoder5
),
create_object_schema([Schema1, Schema2, Schema3, Schema4, Schema5])}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 425).
-spec decode6(
fun((GLO, GLP, GLQ, GLR, GLS, GLT) -> GLU),
{fun((gleam@dynamic:dynamic_()) -> {ok, GLO} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GLP} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GLQ} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GLR} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GLS} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GLT} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GLU} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
decode6(Constructor, T1, T2, T3, T4, T5, T6) ->
{Decoder1, Schema1} = T1,
{Decoder2, Schema2} = T2,
{Decoder3, Schema3} = T3,
{Decoder4, Schema4} = T4,
{Decoder5, Schema5} = T5,
{Decoder6, Schema6} = T6,
{gleam@dynamic:decode6(
Constructor,
Decoder1,
Decoder2,
Decoder3,
Decoder4,
Decoder5,
Decoder6
),
create_object_schema(
[Schema1, Schema2, Schema3, Schema4, Schema5, Schema6]
)}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 454).
-spec decode7(
fun((GMC, GMD, GME, GMF, GMG, GMH, GMI) -> GMJ),
{fun((gleam@dynamic:dynamic_()) -> {ok, GMC} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GMD} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GME} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GMF} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GMG} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GMH} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GMI} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GMJ} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
decode7(Constructor, T1, T2, T3, T4, T5, T6, T7) ->
{Decoder1, Schema1} = T1,
{Decoder2, Schema2} = T2,
{Decoder3, Schema3} = T3,
{Decoder4, Schema4} = T4,
{Decoder5, Schema5} = T5,
{Decoder6, Schema6} = T6,
{Decoder7, Schema7} = T7,
{gleam@dynamic:decode7(
Constructor,
Decoder1,
Decoder2,
Decoder3,
Decoder4,
Decoder5,
Decoder6,
Decoder7
),
create_object_schema(
[Schema1, Schema2, Schema3, Schema4, Schema5, Schema6, Schema7]
)}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 494).
-spec decode8(
fun((GMS, GMT, GMU, GMV, GMW, GMX, GMY, GMZ) -> GNA),
{fun((gleam@dynamic:dynamic_()) -> {ok, GMS} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GMT} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GMU} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GMV} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GMW} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GMX} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GMY} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GMZ} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GNA} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
decode8(Constructor, T1, T2, T3, T4, T5, T6, T7, T8) ->
{Decoder1, Schema1} = T1,
{Decoder2, Schema2} = T2,
{Decoder3, Schema3} = T3,
{Decoder4, Schema4} = T4,
{Decoder5, Schema5} = T5,
{Decoder6, Schema6} = T6,
{Decoder7, Schema7} = T7,
{Decoder8, Schema8} = T8,
{gleam@dynamic:decode8(
Constructor,
Decoder1,
Decoder2,
Decoder3,
Decoder4,
Decoder5,
Decoder6,
Decoder7,
Decoder8
),
create_object_schema(
[Schema1,
Schema2,
Schema3,
Schema4,
Schema5,
Schema6,
Schema7,
Schema8]
)}.
-file("/code/edgar/gleamplay/src/json/blueprint.gleam", 538).
-spec decode9(
fun((GNK, GNL, GNM, GNN, GNO, GNP, GNQ, GNR, GNS) -> GNT),
{fun((gleam@dynamic:dynamic_()) -> {ok, GNK} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GNL} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GNM} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GNN} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GNO} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GNP} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GNQ} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GNR} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}},
{fun((gleam@dynamic:dynamic_()) -> {ok, GNS} |
{error, list(gleam@dynamic:decode_error())}),
{binary(), json@blueprint@schema:schema_definition()}}
) -> {fun((gleam@dynamic:dynamic_()) -> {ok, GNT} |
{error, list(gleam@dynamic:decode_error())}),
json@blueprint@schema:schema_definition()}.
decode9(Constructor, T1, T2, T3, T4, T5, T6, T7, T8, T9) ->
{Decoder1, Schema1} = T1,
{Decoder2, Schema2} = T2,
{Decoder3, Schema3} = T3,
{Decoder4, Schema4} = T4,
{Decoder5, Schema5} = T5,
{Decoder6, Schema6} = T6,
{Decoder7, Schema7} = T7,
{Decoder8, Schema8} = T8,
{Decoder9, Schema9} = T9,
{gleam@dynamic:decode9(
Constructor,
Decoder1,
Decoder2,
Decoder3,
Decoder4,
Decoder5,
Decoder6,
Decoder7,
Decoder8,
Decoder9
),
create_object_schema(
[Schema1,
Schema2,
Schema3,
Schema4,
Schema5,
Schema6,
Schema7,
Schema8,
Schema9]
)}.