Update econf:vcard() to generate correct vcard_temp record

This commit is contained in:
Paweł Chmielowski 2021-05-12 21:46:36 +02:00
parent 0f51a03d08
commit 3b716d2cb0
1 changed files with 36 additions and 31 deletions

View File

@ -553,6 +553,7 @@ hosts() ->
-spec vcard_temp() -> yconf:validator().
vcard_temp() ->
and_then(
vcard_validator(
vcard_temp, undefined,
[{version, undefined, binary()},
@ -583,7 +584,11 @@ vcard_temp() ->
{url, undefined, binary()},
{class, undefined, enum([confidential, private, public])},
{key, undefined, vcard_key()},
{desc, undefined, binary()}]).
{desc, undefined, binary()}]),
fun(Tuple) ->
list_to_tuple(tuple_to_list(Tuple) ++ [[]])
end).
-spec vcard_name() -> yconf:validator().
vcard_name() ->