fix: don't convert empty list default

This commit is contained in:
Stefan Strigler 2023-06-01 20:47:19 +02:00
parent 190e44f8be
commit 15c7c281ca
1 changed files with 1 additions and 0 deletions

View File

@ -536,6 +536,7 @@ init_prop(Keys, Init, Type) ->
format_prop(deprecated, Value) when is_boolean(Value) -> Value;
format_prop(deprecated, _) -> true;
format_prop(default, []) -> [];
format_prop(_, Schema) -> to_bin(Schema).
trans_required(Spec, true, _) -> Spec#{required => true};