Hi,
Using the current svn for 1.3.x branch (revision 3338), when I try to set that a validator is not required for a field, the field suddenly becomes "mandatory". The following example illustrates:
SQL:
CREATE TABLE `test1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`x` int(11) DEFAULT NULL,
`y` int(11) DEFAULT NULL,
`z` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs;
test1/fields.ini:
[id]
[x]
[y]
validators:required=false
[z]
If you try to add a new record in Xataface for table test1, you'll see a little red dot next to field "y" and if you leave it blank, you get an error message. The problem also occurs if you set validators:required to "false", true, "true", 0, 1, "0", or "1".
I believe this is a bug, but perhaps I am misunderstanding how this is supposed to work.
Thanks,
Igor