Open willosborne opened 2 months ago
I was reviewing the newly launched tour.json-schema.org (which is very cool btw, going to link it from our docs).
So it turns out we have another option here by combining boolean and null type.
If we defined the type as
{
"type": ["boolean", "null"]
}
then we could use a null placeholder, the schema would be valid but we could warn the null placeholder.
Bug Report
Steps to Reproduce:
Add a boolean field to a node, relationship or metadata object
e.g.
Expected Result:
Actual Result:
Environment:
Latest version of CLI
Additional Context:
Placeholder values are tricky here. We can't just output
false
as this could be dangerous. We should consider a warning to use enums instead of booleans. Suggested fix for booleans is: