fix: don't convert empty list default
This commit is contained in:
parent
190e44f8be
commit
15c7c281ca
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue