If this node is a boolean you should validate using `booleanNode` instead of `scalarNode`