You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @landure for opening this issue. The default field was indeed set to string in the schema. This just got fixed and another code fix as well. It will be available in version 7.1.0 and the latest beta.
To Reproduce
Create a custom default content type:
In the problems section of visual studio code, this message appear:
The message concern the default value of field "draft", which is a boolean.
Furthermore, If the default value is set to
"false"
, it is equivalent totrue
in Front Matter. An empty default (""
) is equivalent tofalse
.Expected behavior
There should be no issue with a default value with a type other than string.
And if string type is the only possibility, A default set to
"false"
should set the field tofalse
.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: